Django Tutorial Part 11: Deploying Django to production - Learn web

I have followed the entirety of the Django LocalLibrary Tutorial, and I am ready to deploy my app to Heroku: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Deployment
I have followed the checklist for all I need to add to my Django LocalLibrary app (and I even followed the checklist provided by Heroku: Getting Started on Heroku with Python )
I have set this application up twice and twice it has failed once I “pushed” it to Heroku. This is the error message I keep receiving in my terminal:

2021-12-02T22:59:27.703034+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=<heroku-app-name>.herokuapp.com request_id=b7cd6bc7-0476-407d-827b-9ff894f5bbe6 fwd="67.171.128.248" dyno= connect= service= status=503 bytes= protocol=https

I’ve looked up error code=H10 in Heroku but all it tells me is that error code=H10 means “App crashed”. I don’t know what status=503 means. In the Heroku dashboard, the app says the “Build succeeded” and the app has “Deployed”, but all I get when I open the app is a page which says, “Application error.”
What am I missing?

Hi @Andrew_Rea

I have no experience with Django or deploying on Heroku, but the status=503 most likely refers to the HTTP status code 503 Service Unavailable which normally is a temporary issue. Maybe Heroku had some problems with their servers. Have you retried it some time later?

Have a nice weekend,
Michael

1 Like