2016-08-29 193 views
0

我在Python-Django framework中创建了一个项目。我在heroku中部署了这个项目。如何解决Heroku中的“应用程序错误”(Python)

当我试图在终端使用heroku open命令,我

Application Error 

An error occurred in the application and your page could not be served. Please try again in a few moments. 

If you are the application owner, check your logs for details. 

请帮我解决这个错误。

+1

您是否“检查日志以了解详细信息”? –

+2

是的..请访问我的日志给定的链接.. http://stackoverflow.com/questions/39202673/i-got-an-error-while-using-heroku-open-command – Andrea

回答

0

通过您的其他问题,这看起来可能是一个重复的情况来看,我建议你仔细按照下列步骤操作:

https://devcenter.heroku.com/articles/django-app-configuration#the-basics

具体来说,您需要包括一个procfile +在正确的应用requirements.txt,安装它们首先使用pip install和使用pip freeze > requirements.txt

从您发布的日志,捕获他们,看来你应该gunicorn开始,但它可能不是你唯一缺少的应用程序。

相关问题