继Heroku教程之后,我已经创建了一个我想要上传的相当复杂的Django应用程序。我已将其复制到新文件夹,并成功发出git init
,并将文件添加到提交中。我做heroku create --stack cedar
,所以我得到一个网站,然后发出git push heroku master
。我得到如下:在Heroku上部署现有的Django应用程序
Counting objects: 6756, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5779/5779), done.
Writing objects: 100% (6756/6756), 6.98 MiB | 953 KiB/s, done.
Total 6756 (delta 2210), reused 0 (delta 0)
-----> Heroku receiving push
-----> Removing .DS_Store files
-----> Python app detected
! Django app must be in a package subdirectory
! Heroku push rejected, failed to compile Python app
To [email protected]:sitename.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:sitename.git'
里面的Heroku的文件夹,我有我的初始化,设置,管理和urls.py文件然后我有一个存放该文件夹OmniCloud_App特定应用程序的管理,模型,模板(文件夹) ,静态(文件夹),测试,网址和视图。 Heroku为什么不识别应用程序?
Chris,谢谢你让我看看Heroku现在支持django!不久前,我专门寻找了heroku的替代品......这是伟大的/将会观看。 –