From 9e8d75691b0cbe226c9470294dba6098d6fcfcd6 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 19 Feb 2018 11:13:03 +0100 Subject: [PATCH] Fix debug_toolbar loading, update submodules --- app/settings.py | 5 ++++- app/urls.py | 2 +- bin | 2 +- lib/mezzanine-organization | 2 +- lib/mezzanine-organization-themes | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/settings.py b/app/settings.py index 650d0ff2..1cef7f9f 100644 --- a/app/settings.py +++ b/app/settings.py @@ -589,6 +589,10 @@ OPTIONAL_APPS = ( if DEBUG: OPTIONAL_APPS += ('debug_toolbar', 'hijack_admin',) + MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',) + print(MIDDLEWARE_CLASSES) + +INTERNAL_IPS = ['127.0.0.1', '172.17.0.1'] DEBUG_TOOLBAR_PATCH_SETTINGS = False DEBUG_TOOLBAR_PANELS = [ @@ -698,4 +702,3 @@ except ImportError: pass else: set_dynamic_settings(globals()) - diff --git a/app/urls.py b/app/urls.py index ade4d7d1..5992a830 100644 --- a/app/urls.py +++ b/app/urls.py @@ -226,4 +226,4 @@ if "mezzanine.pages" in settings.INSTALLED_APPS: # pages can use JS, CSS and images. handler404 = "mezzanine.core.views.page_not_found" handler500 = "mezzanine.core.views.server_error" -handler403 = "organization.core.views.permission_denied" \ No newline at end of file +handler403 = "organization.core.views.permission_denied" diff --git a/bin b/bin index 9d20dcaf..f7c45631 160000 --- a/bin +++ b/bin @@ -1 +1 @@ -Subproject commit 9d20dcaf70280a8bf87e35bb98cfe36bc9d9e2d5 +Subproject commit f7c456316eb03476bdf4aae2abfcf0f974a49ed3 diff --git a/lib/mezzanine-organization b/lib/mezzanine-organization index 1448d41f..c161c0d8 160000 --- a/lib/mezzanine-organization +++ b/lib/mezzanine-organization @@ -1 +1 @@ -Subproject commit 1448d41fda78c0944b8d6ee6ce0fdabe9917c9e0 +Subproject commit c161c0d8f701d40e77119bf37c3e2812b6ba8438 diff --git a/lib/mezzanine-organization-themes b/lib/mezzanine-organization-themes index 684b6fc8..fad74f44 160000 --- a/lib/mezzanine-organization-themes +++ b/lib/mezzanine-organization-themes @@ -1 +1 @@ -Subproject commit 684b6fc88f4e1e1dd6ec01227652322283315661 +Subproject commit fad74f440d77060d0d6a3a788dc9347c52a8ffda -- 2.39.5