H
H
Hcuy2020-09-13 17:36:34
Django
Hcuy, 2020-09-13 17:36:34

How to solve the error in the logs?

Hello! I'm setting up a django site on heroku. There were problems with the team git push heroku master, the answer to the stackoverflow helped where it says in settings.py to add this

STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
.Honestly, I did not understand how it helped, but it helped. But now when I start the application, I get an error
Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail

That is, they give me a hint to look at the heroku logs. Having studied them, I came to the conclusion that these are the right
2020-09-13T14:16:18.780834+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=intense-sands-76742.herokuapp.com request_id=cf6bed7d-64e3-4ab3-803c-db7770ffadaf fwd="85.249.164.167" dyno= connect= service= status=503 bytes= protocol=https
2020-09-13T14:16:20.429109+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=intense-sands-76742.herokuapp.com request_id=d8d77007-d3ad-4907-9e43-c225e98e7c35 fwd="85.249.164.167" dyno= connect= service= status=503 bytes= protocol=https

As you can see, the application is broken, the paths '/' and '/favicon.ico' are written further and I can't understand what it is and where it came from. Since I don’t have such urls in the application. And after reading the logs, I have no idea how to fix them...googling the logs didn't help me. Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Hcuy, 2020-09-15
@Hcuy

Who will have this error, see Procfile. I had an error with the file name.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question