[Solved]-"django.db.utils.ProgrammingError: relation "auth_user" does not exist" Django V2.0

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.

πŸ‘€Lake Hu

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!

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.

πŸ‘€jadki

Leave a comment