Refs #80 -- Default to DEBUG=True when using the development server

This commit is contained in:
Raphael Michel
2015-07-20 10:49:39 +02:00
parent a34236aeb3
commit cd9c048458

View File

@@ -1,5 +1,6 @@
import configparser
import os
import sys
from django.contrib.messages import constants as messages # NOQA
from django.utils.crypto import get_random_string
@@ -36,7 +37,8 @@ else:
# Adjustable settings
DEBUG = TEMPLATE_DEBUG = config.getboolean('django', 'debug', fallback=False)
debug_fallback = "runserver" in sys.argv
DEBUG = TEMPLATE_DEBUG = config.getboolean('django', 'debug', fallback=debug_fallback)
DATABASES = {
'default': {