settings: add support for a local_settings file

This commit is contained in:
Frédéric Péters 2016-05-12 15:06:36 +02:00
parent c32be43879
commit 72754b7405
1 changed files with 9 additions and 0 deletions

View File

@ -77,8 +77,17 @@ USE_L10N = True
USE_TZ = True
TEMPLATE_DIRS = (
os.path.join(BASE_DIR, 'pfwb_thesaurus', 'templates'),
)
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.7/howto/static-files/
STATIC_URL = '/static/'
local_settings_file = os.environ.get('PFWB_THESAURUS_SETTINGS_FILE',
os.path.join(os.path.dirname(__file__), 'local_settings.py'))
if os.path.exists(local_settings_file):
execfile(local_settings_file)