settings: add support for a local_settings file
This commit is contained in:
parent
c32be43879
commit
72754b7405
|
@ -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)
|
||||
|
|
Reference in New Issue