Postgresql – Django: I get a [relation “auth_group” does not exist] error after syncdb

djangopostgresql

I started a new Django 1.8 project and realized that I missed something (i had done the initial migrations). I dropped the database (postgreSQL) and deleted migration folders from all my apps in order to start from scratch.

Now, when I 'syncdb' I get this error:

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

and when I makemigrations I get this:

No changes detected

What am I doing wrong?

Best Solution

Probably you should try to create migrations modules (folders named migrations with empty file named __init__.py inside of each directory) for your apps. And then run manage.py makemigrations again.

Related Question