How to view Django logs
How can i view the logs from the django application that I have deployed. i.e. I am getting a server error but I need to see what is causing it.
14 Replies
Project ID:
1d1567f8-b603-4b03-833e-09cbf7fcc594
1d1567f8-b603-4b03-833e-09cbf7fcc594
click on the deployment, then click on deploy logs
This doesnt seem to show requests coming into the app? is this something I would need to set up?
yes it would be
what server error are you getting
pretty sure its a 500 error but the logs dont say anything
whats your start command
web: gunicorn flashcard.wsgi --log-file -
This is what you mean right?
I haven't set a start command in the railway ui
first time using railway so not too sure
try that
okay thank you will try that now
that seems to show me the requests when i visit the site but I was wanting to see if there is some way that I can also see the debug logs in the railway logs without having to set debug =true in the env variables so that errors aren't visible to the users
is there something I can add to do this? iirc this is how it works in heroku?
where you gonna send something else lol
no haha i was just wondering if there was an equivalent
it's fine if not
well if you arent logging errors then there wont be errors in the logs
yeah okay thanks for the help