diff --git a/pfwb_archives_proxy/settings.py b/pfwb_archives_proxy/settings.py index 773dcdf..58d92f6 100644 --- a/pfwb_archives_proxy/settings.py +++ b/pfwb_archives_proxy/settings.py @@ -117,3 +117,10 @@ USE_TZ = True # https://docs.djangoproject.com/en/2.2/howto/static-files/ STATIC_URL = '/static/' + + +local_settings_file = os.environ.get( + 'PFWB_ARCHIVES_PROXY_SETTINGS_FILE', os.path.join(os.path.dirname(__file__), 'local_settings.py') +) +if os.path.exists(local_settings_file): + exec(open(local_settings_file).read())