support local settings

Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
This commit is contained in:
Nico Schottelius 2015-05-14 01:19:55 +02:00
parent 3e62c4e0a6
commit 04c50ec314
2 changed files with 10 additions and 2 deletions

1
dynamicweb/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
settings_local.py

View file

@ -23,9 +23,11 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = 'xlhyv_l5-z6e8_@q6)n0up1a0$5-aad7d)om2t8g$bi6*@q44i'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False
ALLOWED_HOSTS = []
ALLOWED_HOSTS = [
".ungleich.ch",
"digital.glarus.ungleich.ch" ]
# Application definition
@ -103,3 +105,8 @@ USE_TZ = True
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
try:
from .settings_local import *
except ImportError as e:
print(e)