Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django: I get a [relation "auth_group" does not exist] error after syncdb

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?

like image 631
xpanta Avatar asked May 25 '15 12:05

xpanta


1 Answers

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.

like image 52
Igor Pomaranskiy Avatar answered Sep 22 '22 09:09

Igor Pomaranskiy