I'm updating a django-1.5 project to django-1.7.2 and when migrating I keep getting "relation "auth_user" does not exist". However if I run python manage.py test -v2 to see the process of database creation/migration
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying subscription.0001_initial... OK
Migrations turn out fine. Am I missing a step? It is my belief that one does not need to syncdb anymore simply
python manage.py migrate
But doing that does not apply migrations for django apps.
Note: I'm not using a custom User class just the regular django.contrib.auth.models.User
May be you faked auth migrations already on real database?
Try to check
select * from django_migrations where app='auth'
and if any records exists, delete them.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments