Some changes that the settings to reduce the logic in the local_settings.py
This commit is contained in:
@@ -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',
|
||||||
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user