我似乎无法在部署期间运行我的迁移文件。我正在使用 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 question 和 official docs,但似乎没有帮助。
我的 procfile 包含:
release: python manage.py migrate
设置包括:
django_heroku.settings(locals())
关于为什么会发生这种情况的任何想法?