From c5d534a00650c87f4e6bd5814bc9517766217aab Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson <frjo@xdeb.org> Date: Tue, 5 Nov 2019 10:34:42 +0100 Subject: [PATCH] Disable TimerPanel in debug panel by default as well. Minor additions to local example settings. --- opentech/settings/dev.py | 2 +- opentech/settings/local.py.example | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/opentech/settings/dev.py b/opentech/settings/dev.py index 280e44591..e6d22d416 100644 --- a/opentech/settings/dev.py +++ b/opentech/settings/dev.py @@ -126,6 +126,7 @@ if DEBUG: DEBUG_TOOLBAR_CONFIG = { "DISABLE_PANELS": { 'debug_toolbar.panels.versions.VersionsPanel', + 'debug_toolbar.panels.timer.TimerPanel', 'debug_toolbar.panels.settings.SettingsPanel', 'debug_toolbar.panels.headers.HeadersPanel', 'debug_toolbar.panels.request.RequestPanel', @@ -141,7 +142,6 @@ DEBUG_TOOLBAR_CONFIG = { "SHOW_COLLAPSED": True, } - WEBPACK_LOADER['DEFAULT'].update({ 'STATS_FILE': os.path.join(BASE_DIR, './opentech/static_compiled/app/webpack-stats.json'), }) diff --git a/opentech/settings/local.py.example b/opentech/settings/local.py.example index 571bc3a53..9ff551708 100644 --- a/opentech/settings/local.py.example +++ b/opentech/settings/local.py.example @@ -7,22 +7,25 @@ CACHES = { } } +# ALLOWED_HOSTS = ['apply.otf.test', 'otf.test', 'apply.hypha.test', 'hypha.test', '127.0.0.1'] + +# BASE_URL = 'http://otf.test' + +# Turn off DEBUG mode. +# DEBUG = False + # Write log to local file. # LOCAL_FILE_LOGGING = True # Write e-mails to local files. # LOCAL_FILE_EMAIL = True -# On staging, uncomment the following to enable the styleguide +# Enable the styleguide. # ENABLE_STYLEGUIDE = True -# ALLOWED_HOSTS = ['apply.otf.test', 'otf.test', '127.0.0.1'] - -# BASE_URL = 'http://otf.test' - # SECRET_KEY = 'CHANGEME!!!' -# Enable Wagtail Cache while developing +# Enable Wagtail Cache. # WAGTAIL_CACHE = True # If you have a problem with "CSRF cookie not set". -- GitLab