Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

heroku: relation "auth_group" does not exist

I'm facing problem while doing syncdb on heroku. I have a custom user 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 is getting resolved. Help me find the solution.

like image 425
S7H Avatar asked Jan 09 '23 09:01

S7H


1 Answers

I just had a similar problem. It seems that the auth module should be the first module to migrate but for some reason that isn't happening.

All what I did to solve this was

./manage.py migrate auth

Then

./manage.py migrate
like image 124
Lantern Avatar answered Jan 16 '23 21:01

Lantern