【发布时间】:2017-03-04 11:05:26
【问题描述】:
我正在尝试迁移托管在 heroku 中的应用程序上的 dajngo-background-tasks。迁移在本地正常工作,但是当我尝试运行时:
heroku run python manage.py migrate
它返回“没有要应用的迁移”
- 我已将“background_task”添加到 INSTALLED_APPS
-
我跑了
heroku run python manage.py makemigrations background_task它创建了所需的迁移
-
我什至尝试过跑步
heroku run python manage.py migrate background_task导致“CommandError:应用程序'background_task'没有迁移。”
PS:我注意到的一件事是,在本地运行迁移时,我得到了这个文本
Apply all migrations: admin, background_task, auth, contenttypes, sessions, <my_app>
但是当我在服务器上运行它时,我得到了
Apply all migrations: admin, auth, contenttypes, sessions, <my_app>
我们将不胜感激任何形式的帮助!
【问题讨论】:
标签: django heroku migration background-task