Re: "pytest --doctests-modules" AlreadyRegistered error

2020-07-31 Thread Dave R
I figured this out. I'm using Cookiecutter-Django, which puts a __init__.py for whatever reason in the root directory and this confuses pytest. If you delete this __init__.py, everything works fine. On Friday, July 31, 2020 at 8:53:39 PM UTC-4 Dave R wrote: > I am using doctests via pyt

"pytest --doctests-modules" AlreadyRegistered error

2020-07-31 Thread Dave R
I am using doctests via pytest with the command "pytest --doctest-modules". Unfortunately, I keep getting the following error. I've already attached a screenshot. Does anyone understand what's causing and how to address it? Thanks! == ERRORS

Question about django.utils.autoreload

2020-07-20 Thread Dave R
Hello, I'm trying to figure out how to rebuild my React.js project (with Django backend) and relaunch the Django dev server if a React.js file changes. The code below works, but it rebuilds React even if the only code changes are in Django. Can anyone suggest how to solve this problem?

Django package auto-installation

2020-07-19 Thread Dave R
My new package: https://github.com/pandichef/indjections The basic idea: Installing third party Django packages should be one-line of code. I'm looking for feedback and/or contributors. Thanks! -- You received this message because you are subscribed to the Google Groups "Django users"

Django as an authentication server

2020-06-28 Thread Dave R
A few weeks ago on this group, I asked for suggestions on how to enable logging into one Django app from another Django app. I didn't love the answers I got, so I rolled out my own solution: https://github.com/pandichef/djangito I'd love to get some feedback on this and/or find contributors

Re: Is there a package that enables one Django project to authenticate via a second Django project?

2020-06-25 Thread Dave R
nterface from the remote user. > > https://docs.djangoproject.com/en/3.0/howto/auth-remote-user/ > > The reason I wouldn't use open id connect is because you still need a > local user object for each project in that case. > > Regards, > > Andréas > > > Den tor

Is there a package that enables one Django project to authenticate via a second Django project?

2020-06-25 Thread Dave R
I keep running into this problem and started working on a custom solution... but before I spend hours on this, I want to confirm that such a package/solution doesn't already exist. I was working on a large project last year that involved a single set of users and many small applications. I