无法打开文件'manage.py':[Errno 2]没有这样的文件或目录

时间:2018-10-05 20:06:16

标签: python django heroku

我的Procfile包含

web: gunicorn chn_parking.wsgi

为什么我会收到此错误?

  

无法打开文件'manage.py':[Errno 2]没有这样的文件或目录

我正在尝试在Heroku上部署应用程序。一切都很好...

enter image description here

2 个答案:

答案 0 :(得分:0)

假设您的网站名为chn_parking,则您的Procfile应该包含

web: gunicorn chn_parking.wsgi

而不是引用chn_parking.settings

答案 1 :(得分:0)

heroku上有一个错误。我使用python 3.7构建应用程序,这就是为什么会给我错误的原因。 https://github.com/heroku/heroku-buildpack-python/issues/728

奇怪的是,今天早些时候,我在Heroku上用3.7推送了另一个应用程序,它的运行就像一个魅力!

相关问题