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