【发布时间】:2020-10-20 19:51:22
【问题描述】:
我正在尝试在 heroku 中部署我的代码。 部署时我完成了所有步骤 但我在迁移时出错
我试试这些命令
heroku run python manage.py makemigrations account
在运行上面的命令时我得到
account/migrations/0001_initial.py
- Create model User
但在尝试迁移时
我试试
heroku run python manage.py migrate account
我得到错误
raise ValueError("Dependency on app with no migrations: %s" % key[0])
ValueError: Dependency on app with no migrations: account
我也试试
heroku run python manage.py makemigrations
heroku run python manage.py migrate
此时我也遇到同样的错误
项目在本地成功运行 没有任何错误
我是heroku的新手,请任何人都可以提供完整的指导
【问题讨论】:
标签: python django postgresql heroku