为什么我收到迁移错误:依赖项引用不存在?

时间:2021-01-12 09:32:02

标签: heroku web-deployment django-migrations

我似乎无法在部署期间运行我的迁移文件。我正在使用 django-allauth 包来设置自定义用户模型。运行 python3 manage.py makemigrations 我得到一个 0001_initial.py Heroku 抛出:

Migration accounts.0001_initial dependencies reference nonexistent parent node ('auth', '0013_auto_20201218_2106')

它似乎不喜欢 0001_initial.py 中的以下自动生成代码:

dependencies = [
    ('auth', '0013_auto_20201218_2106'),
]

我正在使用 SQLite 进行本地开发,我相信 heroku 会映射到 postgres。

我还查看了 this questionofficial docs,但似乎没有帮助。

我的 procfile 包含:

release: python manage.py migrate

设置包括:

django_heroku.settings(locals())

关于为什么会发生这种情况的任何想法?

0 个答案:

没有答案
相关问题