我正在部署一個現有的Django項目(與多個應用程序)到Heroku。我遵循了Heroku docs中的步驟。當我運行heroku run python manage.py syncdb
我得到以下錯誤:heroku syncdb現有的Django項目與多個應用程序
Running `python manage.py syncdb` attached to terminal... failed
! No app specified.
! Run this command from an app folder or specify which app to use with --app APP.
我嘗試了這些建議,但問題仍然存在。另外,我想知道是否有辦法爲所有現有的應用程序自動創建數據庫表,而無需指定每個應用程序。
我也使用南,我仍然不知道如何正確地將我的遷移轉移到Heroku。也許這是問題的一部分?
您是否在您項目的主目錄中?你能否成功運行「git push heroku master」? – dannyroa
我是。不過,我一直在研究二級分支(所以我不會太過分)。我一直在推'git push heroku secondary_brach_name:master'。這可能是問題嗎? – Rob