Some changes that the settings to reduce the logic in the local_settings.py

This commit is contained in:
2016-09-16 19:37:37 +02:00
parent ac78dc3d75
commit 9b0967adc8

View File

@@ -5,6 +5,7 @@ gettext = lambda s: s
ADMINS = (('Max Mustermann', 'email@example.com'),) ADMINS = (('Max Mustermann', 'email@example.com'),)
ALLOWED_HOSTS = ['.kasu.at'] ALLOWED_HOSTS = ['.kasu.at']
DEBUG = False
FORCE_SCRIPT_NAME = "" FORCE_SCRIPT_NAME = ""
INTERNAL_IPS = ('127.0.0.1',) INTERNAL_IPS = ('127.0.0.1',)
MANAGERS = ADMINS MANAGERS = ADMINS
@@ -254,3 +255,9 @@ try:
from .local_settings import * from .local_settings import *
except ImportError: except ImportError:
pass pass
if DEBUG:
TEMPLATES[0]['OPTIONS']['loaders'] = [
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
]