COMBO_INITIAL_LOGIN_PAGE_PATH = '/'
COMBO_WELCOME_PAGE_PATH = None
-try:
- from .local_settings import *
-except ImportError as e:
- pass
+local_settings_file = os.environ.get(
+ 'PANIKWEB_SETTINGS_FILE', os.path.join(os.path.dirname(__file__), 'local_settings.py')
+)
+if os.path.exists(local_settings_file):
+ exec(open(local_settings_file).read())
if DEBUG and DEBUG_TOOLBAR:
MIDDLEWARE_CLASSES += (