forked from CGM_Public/pretix_original
Refs #80 -- Default to DEBUG=True when using the development server
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import configparser
|
import configparser
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
from django.contrib.messages import constants as messages # NOQA
|
from django.contrib.messages import constants as messages # NOQA
|
||||||
from django.utils.crypto import get_random_string
|
from django.utils.crypto import get_random_string
|
||||||
@@ -36,7 +37,8 @@ else:
|
|||||||
|
|
||||||
# Adjustable settings
|
# 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 = {
|
DATABASES = {
|
||||||
'default': {
|
'default': {
|
||||||
|
|||||||
Reference in New Issue
Block a user