Set DEBUG = False¶
Most importantly, you should never run Arches in production with DEBUG = True
. Open your settings.py
file (or settings_local.py
) and set DEBUG = False
(just add that line if necessary).
Turning off the Django debug mode will:
Suppress the verbose Django error messages in favor of a standard 404 or 500 error page.
You will now find Django error messages printed in your
arches.log
file.Important
Make sure you have
500.htm
and404.htm
files in your project’s templates directory!Cause Django to stop serving static files.
You must set up a real webserver, like Apache or Nginx, to serve your app. See Serving Arches with Apache.