diff --git a/steering/settings.py b/steering/settings.py index 8ae8ca0c241c7669644484c150fad55e15a520c0..773bf3ca2e0bd45c053572853bc61075b0b6ccd1 100644 --- a/steering/settings.py +++ b/steering/settings.py @@ -1,4 +1,5 @@ import os +import sys from pathlib import Path import ldap @@ -242,3 +243,12 @@ LOGGING = { }, }, } + +# ATTENTION: +# Don’t add any configuration settings after this, so that administrators can override them. +try: + sys.path.insert(0, "/etc/steering") + from steering_settings import * # noqa: F401,F403 +except ImportError: + if os.path.exists("/etc/steering/steering_settings.py"): + raise