Please forgive the typo in the subject line. It should read "Turning DEBUG=False causes a tornado of Error 500s"
Joel G Mathew On Sat, 3 Nov 2018 at 00:49, Joel Mathew <[email protected]> wrote: > > When I turned DEBUG = False in my project/settings.py, I suddenly got > a whole bunch of HTTP Error 500. Most of the css reources showed the > error. I have two apps in this project, and I've been sharing static > resources between these apps. Would these be the cause of these > errors? > > See the following with DEBUG=True: > ================================================ > joel@hp:~/myappointments$ python3 manage.py runserver > Performing system checks... > > System check identified no issues (0 silenced). > November 03, 2018 - 00:46:23 > Django version 2.1.2, using settings 'myappointments.settings' > Starting development server at http://127.0.0.1:8000/ > Quit the server with CONTROL-C. > In livelist for clinic: joelent > Checking for membership > In HasMembership function. > In IsMemberof function.. Got arguments: cliniclabel:joelent username:joel > permobj.viewperms: 1 > Verified that ... is a member of joelent > Username is ... > Showhelp for Joel G Mathew is False > [03/Nov/2018 00:46:27] "GET /clinic/joelent/live HTTP/1.1" 200 19802 > [03/Nov/2018 00:46:27] "GET > /appointments/static/appointments/css/calcustomcolors.css?dev=82444302 > HTTP/1.1" 200 246 > [03/Nov/2018 00:46:27] "GET > /appointments/static/appointments/css/mytheme.css?dev=82444302 > HTTP/1.1" 200 884 > [03/Nov/2018 00:46:27] "GET > /appointments/static/clinic/css/colorbuttons.css?dev=82444302 > HTTP/1.1" 200 3596 > [03/Nov/2018 00:46:27] "GET > /appointments/static/appointments/js/search.js?dev=82444302 HTTP/1.1" > 200 6554 > [03/Nov/2018 00:46:27] "GET > /appointments/static/appointments/js/jquery-ui/jquery-ui.js?dev=82444302 > HTTP/1.1" 200 520714 > [03/Nov/2018 00:46:27] "GET > /appointments/static/appointments/js/appointment.js?dev=82444302 > HTTP/1.1" 200 17716 > [03/Nov/2018 00:46:27] "GET > /appointments/static/clinic/icons/favicon.ico HTTP/1.1" 200 311737 > > > ================================================ > > And now with DEBUG = False: > > python3 manage.py runserver > Performing system checks... > > System check identified no issues (0 silenced). > November 03, 2018 - 00:47:39 > Django version 2.1.2, using settings 'myappointments.settings' > Starting development server at http://127.0.0.1:8000/ > Quit the server with CONTROL-C. > In livelist for clinic: joelent > Checking for membership > In HasMembership function. > In IsMemberof function.. Got arguments: cliniclabel:joelent username:joel > permobj.viewperms: 1 > Verified that ... is a member of joelent > Username is .... > Showhelp for Joel G Mathew is False > [03/Nov/2018 00:47:44] "GET /clinic/joelent/live HTTP/1.1" 200 19802 > 2018-11-03 00:47:44,523 django.request ERROR Internal Server Error: > /appointments/static/clinic/css/colorbuttons.css > 2018-11-03 00:47:44,525 django.request ERROR Internal Server Error: > /appointments/static/appointments/css/calcustomcolors.css > 2018-11-03 00:47:44,532 django.request ERROR Internal Server Error: > /appointments/static/appointments/css/mytheme.css > 2018-11-03 00:47:44,562 django.request ERROR Internal Server Error: > /appointments/static/appointments/js/jquery-ui/jquery-ui.js > 2018-11-03 00:47:44,567 django.request ERROR Internal Server Error: > /appointments/static/appointments/js/search.js > [03/Nov/2018 00:47:44] "GET > /appointments/static/appointments/css/mytheme.css?dev=82846267 > HTTP/1.1" 500 27 > [03/Nov/2018 00:47:44] "GET > /appointments/static/appointments/css/calcustomcolors.css?dev=82846267 > HTTP/1.1" 500 27 > [03/Nov/2018 00:47:44] "GET > /appointments/static/clinic/css/colorbuttons.css?dev=82846267 > HTTP/1.1" 500 27 > [03/Nov/2018 00:47:44] "GET > /appointments/static/appointments/js/search.js?dev=82846267 HTTP/1.1" > 500 27 > [03/Nov/2018 00:47:44] "GET > /appointments/static/appointments/js/jquery-ui/jquery-ui.js?dev=82846267 > HTTP/1.1" 500 27 > 2018-11-03 00:47:44,632 django.request ERROR Internal Server Error: > /appointments/static/appointments/js/appointment.js > [03/Nov/2018 00:47:44] "GET > /appointments/static/appointments/js/appointment.js?dev=82846267 > HTTP/1.1" 500 27 > 2018-11-03 00:47:44,697 django.request ERROR Internal Server Error: > /appointments/static/appointments/js/jquery-ui/jquery-ui.js > [03/Nov/2018 00:47:44] "GET > /appointments/static/appointments/js/jquery-ui/jquery-ui.js?dev=82846267 > HTTP/1.1" 500 27 > 2018-11-03 00:47:44,849 django.request ERROR Internal Server Error: > /appointments/static/appointments/js/search.js > [03/Nov/2018 00:47:44] "GET > /appointments/static/appointments/js/search.js?dev=82846267 HTTP/1.1" > 500 27 > 2018-11-03 00:47:44,875 django.request ERROR Internal Server Error: > /appointments/static/appointments/js/appointment.js > [03/Nov/2018 00:47:44] "GET > /appointments/static/appointments/js/appointment.js?dev=82846267 > HTTP/1.1" 500 27 > 2018-11-03 00:47:45,152 django.request ERROR Internal Server Error: > /appointments/static/clinic/icons/favicon.ico > [03/Nov/2018 00:47:45] "GET > /appointments/static/clinic/icons/favicon.ico HTTP/1.1" 500 27 > > > Sincerely yours, > > Joel G Mathew -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAA%3Diw__mTEDDTm%3DNBNW6t0fVwM%2BSGdy6rJU54tgX7dQm0wcvqw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

