heroku: relation “auth_group” does not exist

随声附和 提交于 2019-12-07 12:30:59

问题


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.


回答1:


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


来源:https://stackoverflow.com/questions/30252087/heroku-relation-auth-group-does-not-exist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!