Donate to support Ukraine's independence.

05 Mar'12

Django fails with DEBUG=False on production

First, be sure to eliminate this issue:

Next, enable logging of all events. That will save you plenty of time.

Next, be sure to include both 404.html and 500.html in the root of your templates’ folder. See here and here for details.

If you are using nginx, be sure to include correct fastcgi configuration file: (post before the last). Fairly equal to But extensive configuration didn’t work for me.