简体   繁体   English

应用程序崩溃,在Django中部署Heroku错误

[英]App crashed , deployment Heroku error in Django

I'm deploying my first Django app on Heroku and i get this error: 我在Heroku上部署了我的第一个Django应用,但出现此错误:

2019-06-17T22:02:04.615398+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=carlosdelgado1.herokuapp.com request_id=210a779e-59ba-46c3-af78-e60215244798 fwd="24.55.161.197" dyno= connect= service= status=503 bytes= protocol=https
2019-06-17T22:34:14.393752+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=carlosdelgado1.herokuapp.com request_id=cc7678e9-c3ec-4b97-9a34-383b6f6f0a4e fwd="24.55.161.197" dyno= connect= service= status=503 bytes= protocol=https

this is whats in my Procfile: 这是我的Procfile中的内容:

web: gunicorn porfolio.wsgi

i did these import in the wsgi.py file: 我在wsgi.py文件中做了这些导入:

import os

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "kloudless.settings")
from django.core.wsgi import get_wsgi_application
from dj_static import Cling

application = Cling(get_wsgi_application())

here is the github link to the blog project: https://github.com/Poucarlos/portfolio 这是博客项目的github链接: https : //github.com/Poucarlos/portfolio

I'm trying to display my blog in Heroku to see it when I access it 我试图在Heroku中显示我的博客,以便在访问它时看到它

There should be an error before the status code. 状态代码前应该有一个错误。 Can you include the whole Build from the start to where you get the 503 error? 您是否可以从头到出现503错误都包括整个Build? It might be any of the django errors like template error or modulenotfounderror. 可能是任何Django错误,例如模板错误或modulenotfounderror。 Can be fixed by identifying the error. 可以通过识别错误来解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM