diff --git a/realms/config/__init__.py b/realms/config/__init__.py index 1d06cde..3dba1a8 100644 --- a/realms/config/__init__.py +++ b/realms/config/__init__.py @@ -169,8 +169,6 @@ WIKI_LOCKED_PAGES = [] ROOT_ENDPOINT = 'wiki.page' -globals().update(read()) - # Used by Flask-Login LOGIN_DISABLED = ALLOW_ANON @@ -196,6 +194,8 @@ if ENV != "DEV": MODULES = ['wiki', 'search', 'auth'] +globals().update(read()) + if globals().get('AUTH_LOCAL_ENABLE'): MODULES.append('auth.local')