Debug False

26 views
Skip to first unread message

Ronak Mistry

unread,
Dec 15, 2020, 2:56:31 AM12/15/20
to django...@googlegroups.com
When i set debug to false the server respond with internal server error 500 on local host.
Also i had installed whitenoise, gunicorn an in allowed hosts i put "*"
When i go to admin site it works perfectly fine... 

But when debug is set to true everything works perfectly fine.. 
Can anyone give me any solution...? 

Ali Sufyan

unread,
Dec 15, 2020, 8:52:05 AM12/15/20
to Django users
Bro search for logging and include logging in your settings. When you set debug = False, it will not output errors in the console. But if you enable loging it will output all errors in text file
Reply all
Reply to author
Forward
0 new messages