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
Percy
Percy16mo ago
Project ID: 1d1567f8-b603-4b03-833e-09cbf7fcc594
judemolloy
judemolloy16mo ago
1d1567f8-b603-4b03-833e-09cbf7fcc594
Brody
Brody16mo ago
click on the deployment, then click on deploy logs
judemolloy
judemolloy16mo ago
This doesnt seem to show requests coming into the app? is this something I would need to set up?
Brody
Brody16mo ago
yes it would be what server error are you getting
judemolloy
judemolloy16mo ago
pretty sure its a 500 error but the logs dont say anything
Brody
Brody16mo ago
whats your start command
judemolloy
judemolloy16mo ago
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
Brody
Brody16mo ago
web: gunicorn flashcard.wsgi --access-logfile - --log-file -
web: gunicorn flashcard.wsgi --access-logfile - --log-file -
try that
judemolloy
judemolloy16mo ago
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?
Brody
Brody16mo ago
where you gonna send something else lol
judemolloy
judemolloy16mo ago
no haha i was just wondering if there was an equivalent it's fine if not
Brody
Brody16mo ago
well if you arent logging errors then there wont be errors in the logs
judemolloy
judemolloy16mo ago
yeah okay thanks for the help
Want results from more Discord servers?
Add your server