X-Git-Url: https://git.0d.be/?p=chloro.git;a=blobdiff_plain;f=chloro%2Fsettings.py;fp=chloro%2Fsettings.py;h=3fb408aa21aa0d31db7a38262112893cb3e05261;hp=e18c021402b63b25bbe41724d63bdf10fad78d48;hb=3df85d6d243fb614e26f67eebc12b9c43000fcf1;hpb=dcabc3288c7e5ab246fd85056c60ee06182ad59b diff --git a/chloro/settings.py b/chloro/settings.py index e18c021..3fb408a 100644 --- a/chloro/settings.py +++ b/chloro/settings.py @@ -106,3 +106,9 @@ USE_TZ = True # https://docs.djangoproject.com/en/1.11/howto/static-files/ STATIC_URL = '/static/' + +local_settings_file = os.environ.get( + 'CHLORO_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())