5π
I encountered the same error.
At last I found the root cause was the database.
There may be some auth info in the database already.
Editing setting.py and using another new database will solve this problem.
5π
I have same issue even after creating new database.
What helped me, is choosing another owner, when creating new DB, not postgress owner. Also I was using
py manage.py migrate myapp
with this command, I have the same issue as well
But when I tried use
py manage.py migrate
and change owner from postgress on DB creating, it helped!
- Does django staticfiles skip the middleware?
- How to use django-compressor behind load balancer?
- How to test Django custom model fields?
- GenericForeignKey and Admin in Django
- Change the name attribute of form field in django template using
0π
I ran into the same problem after I upgraded my DB with new/removed apps and forgot to upgrade my asgi.py
and wsgi.py
files to point to the upgraded settingsprod.py
(for anyone who was following along with the eCommerce CodingWithStein). I then had to restart my nginx and gunicorn services.
- Full outer join in django
- How to write a django-rest-framework serializer / field to merge data from generic relations?
- What are some alternative for ModelChoiceField for large number of choices?