Heroku: relationship "auth_group" does not exist

I am facing a problem when doing syncdb on heroku. I have a custom model, and when I try to sync, heroku gives this error.

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

      

I tried python manage.py makemigrations but nothing works. Help me find a solution.

+3


source to share


1 answer


I had a similar problem. It seems like the auth module should be the first module to migrate, but for some reason it doesn't.

All I did to work it out was

./manage.py migrate auth

      



Then

./manage.py migrate

      

+7


source







All Articles