我想在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的新手,请有经验的人提供详细指导