settings: load /etc/authentic2/config.py if available

This commit is contained in:
Benjamin Dauvergne 2014-07-02 19:38:00 +02:00
parent 95e407a783
commit 4c2ca1e29e
1 changed files with 5 additions and 0 deletions

View File

@ -433,6 +433,11 @@ for config_dir in CONFIG_DIRS:
raise ImproperlyConfigured('JSON file %r is not a dictionnary' % path)
load_dict_config(json_config)
for config_dir in CONFIG_DIRS:
config_py = os.path.join(config_dir, 'config.py')
if os.path.exists(config_py):
execfile(config_py, globals())
try:
from local_settings import *
except ImportError, e: