heroku:关系"auth_group"不存在 [英] heroku: relation "auth_group" does not exist

查看:128
本文介绍了heroku:关系"auth_group"不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在heroku上执行syncdb时遇到问题. 我有一个自定义用户模型,当我尝试同步时,heroku会出现此错误.

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

我尝试了python manage.py makemigrations,但没有任何解决方法. 帮我找到解决方法.

I tried python manage.py makemigrations but nothing is getting resolved. Help me find the solution.

推荐答案

我只是遇到了类似的问题.似乎auth模块应该是第一个要迁移的模块,但是由于某种原因却没有发生.

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

然后

./manage.py migrate

这篇关于heroku:关系"auth_group"不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆