]> git.0d.be Git - chloro.git/blobdiff - chloro/settings.py
settings: add support for local settings file
[chloro.git] / chloro / settings.py
index e18c021402b63b25bbe41724d63bdf10fad78d48..3fb408aa21aa0d31db7a38262112893cb3e05261 100644 (file)
@@ -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())