Skip to content
Snippets Groups Projects
Verified Commit 8a8c2e20 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Rename settings for debug mode. Closes #87.

Works around a bug in dynaconf: Variable names in settings module must
not be the same as top-level names in the config file, or they will
magically be overridden. :rage:
parent b5905037
No related branches found
No related tags found
No related merge requests found
......@@ -30,8 +30,8 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = _settings.get('secret_key', 'DoNotUseInProduction')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = _settings.get('debug.enabled', False)
INTERNAL_IPS = _settings.get('debug.internal_ips', [])
DEBUG = _settings.get('maintenance.debug', False)
INTERNAL_IPS = _settings.get('maintenance.internal_ips', [])
DEBUG_TOOLBAR_CONFIG = {
'RENDER_PANELS': True,
'SHOW_COLLAPSED': True
......@@ -287,7 +287,7 @@ TEMPLATE_VISIBLE_SETTINGS = ['ADMINS']
MAINTENANCE_MODE = _settings.get('maintenance.enabled', None)
MAINTENANCE_MODE_IGNORE_IP_ADDRESSES = _settings.get(
'maintenance.ignore_ips', _settings.get('debug.internal_ips', []))
'maintenance.ignore_ips', _settings.get('maintenance.internal_ips', []))
MAINTENANCE_MODE_GET_CLIENT_IP_ADDRESS = 'ipware.ip.get_ip'
MAINTENANCE_MODE_IGNORE_SUPERUSER = True
......
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