Skip to content

Commit

Permalink
Allow loading settings from outside of the postgresqleu tree
Browse files Browse the repository at this point in the history
To ease building docker images and prevent having to maintain an
in-tree file for local settings, allow a pgeu_system_settings
module anywhere in the PYTHONPATH for configuration.
  • Loading branch information
mwanner committed Nov 24, 2024
1 parent ee701d6 commit b2d781d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion postgresqleu/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,13 @@
try:
from .local_settings import *
except ImportError as e:
pass
# If there's no local_settings.py within the postgresqleu tree, check
# for a globally available pgeu_system_settings module in any configured
# PYTHONPATH.
try:
from pgeu_system_settings import *
except ImportError as e:
pass

PRELOAD_URLS = []
if 'SYSTEM_SKIN_DIRECTORY' in globals():
Expand Down

0 comments on commit b2d781d

Please sign in to comment.