"django.db.utils.ProgrammingError: relation "auth_user" does not exist" Django V2.0

DariusFontaine

I've recently upgraded Django to V2.0 and I'm unable to make migrations due to the following error:

django.db.utils.ProgrammingError: relation "auth_user" does not exist

I know a similar bug existed in V1.8 which I fixed by migrating the model which others depend on, i.e. auth_user and then the rest:

python manage.py migrate auth
python manage.py migrate

When I try to migrate 'auth' I encounter the same error. Has anybody encountered/found a solution to this?

Shaul Hu

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.

Collected from the Internet

Please contact javaer1[email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Django error: relation "users_user" does not exist

django.db.utils.ProgrammingError: relation already exists on OenBSD vps

django.db.utils.ProgrammingError: relation "bot_trade" does not exist

Django 1.8 test issue: ProgrammingError: relation "auth_user" does not exist

django.db.utils.ProgrammingError: relation "django_site_domain_v2339b81_uniq" already exists

django.db.utils.ProgrammingError: relation "django_content_type" does not exist

Django Setup: No Such Table auth_user

Errno 2 File b' does not exist: in heroku django

Paypal API v2 response The specified resource does not exist

django.contrib.auth.models.User.DoesNotExist: User matching query does not exist

How to resolve the "psycopg2.errors.UndefinedTable: relation "auth_user" does not exist" when running django unittests on Travis

Django template does not exist @

Django test fails with 'django.db.utils.ProgrammingError: relation "django_content_type" does not exist'

django.db.utils.ProgrammingError: relation "..." does not exist

django 1.7 relation "auth_user" does not exist in migrate but fine in tests

Password not saving to auth_user table in Django

how to update django auth_user with queryset?

Ecto: column v0.availabilites does not exist

Kinect 0 does not exist

Django add field to auth_user

Django Rest Framework "django.db.utils.ProgrammingError: relation "patient" does not exist"

"django-rest-auth" DoesNotExist: Site matching query does not exist

Django: relation does not exist

template does not exist in django

One more "django.db.utils.ProgrammingError: relation "device_gclouddevice" does not exist"

django.db.utils.ProgrammingError: relation "company_company" does not exist when running makemigrations

django.db.utils.ProgrammingError: relation does not exist with recursive model

matching query does not exist django V3.2.9

Django: Template does not exist