Setting debug=false is no workig

35 views
Skip to first unread message

Andrei Rolando León Salas

unread,
Nov 7, 2021, 4:44:57 PM11/7/21
to Django users
Hi. i have a production site where i am using wsgi.py to show my django project.

i have my settings with DEBUG = False, but when i enter a non existant route, it shows all the debug information, and it says that it has debug = true. as far as i know it should be showing error 500 and send an email

just in case, it is an old project and i am maintaining it, so maybe it is debug set to true in another place? i was just following documentation but could not find any other place where it could be


Python Version: 2.7.5
Django/1.2.7

Jason

unread,
Nov 7, 2021, 6:58:07 PM11/7/21
to Django users
eep, that's a really old version.

what I'd do is 

• grep your project to make sure you're not defining DEBUG anywhere else
• ensure you restarted your server (apache, nginx, etc) process
• ensure your code you're looking at is the same as what is deployed.

Andrei Rolando León Salas

unread,
Nov 7, 2021, 9:05:10 PM11/7/21
to Django users
it was in the local.py i forgot to do the complete search. Thank you very much!
Reply all
Reply to author
Forward
0 new messages