diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2017-05-01 21:45:07 +0200 |
---|---|---|
committer | Jelle van der Waa <jelle@vdwaa.nl> | 2017-05-01 21:57:36 +0200 |
commit | 787915705e3ddebd3df4ca0bcb932c1478813162 (patch) | |
tree | 1fc49daa5a4e11008dd5db95cd705d8bfc7145ff /settings.py | |
parent | 5e334d78f82cb0dc5f7d3a11db423284016213b4 (diff) | |
download | archweb-787915705e3ddebd3df4ca0bcb932c1478813162.tar.gz archweb-787915705e3ddebd3df4ca0bcb932c1478813162.zip |
settings: pass when local_settings can't be imported
Continue when local_settings can't be imported for an easier test setup.
Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
Diffstat (limited to 'settings.py')
-rw-r--r-- | settings.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/settings.py b/settings.py index 4393e693..8043bc4c 100644 --- a/settings.py +++ b/settings.py @@ -178,8 +178,21 @@ COUNTRIES_OVERRIDE = { 'US': 'United States', } +# Make this unique, and don't share it with anybody. +SECRET_KEY = '00000000000000000000000000000000000000000000000' + +DATABASES = { + 'default': { + 'ENGINE' : 'django.db.backends.sqlite3', + 'NAME' : 'database.db', + }, +} + ## Import local settings -from local_settings import * +try: + from local_settings import * +except ImportError: + pass # Enable caching templates in production environments if not TEMPLATE_DEBUG: |