Skip to content
Snippets Groups Projects
Verified Commit 6766900b authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

feat: add logic to override the settings

parent b9c0d5b4
No related branches found
No related tags found
No related merge requests found
Pipeline #8310 passed
import os import os
import sys
from pathlib import Path from pathlib import Path
import ldap import ldap
...@@ -242,3 +243,12 @@ LOGGING = { ...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment