From 759b6d9489ae7bc151642b7717e7408c99ad816b Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Fri, 12 Apr 2019 17:04:33 +0200 Subject: [PATCH] Update settings ; remove debug_panel --- cof/settings/common.py | 1 - cof/settings/dev.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cof/settings/common.py b/cof/settings/common.py index 92263ba9..1b6f3bd1 100644 --- a/cof/settings/common.py +++ b/cof/settings/common.py @@ -112,7 +112,6 @@ MIDDLEWARE = [ "django.middleware.common.CommonMiddleware", "django.middleware.csrf.CsrfViewMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware", - "django.contrib.auth.middleware.SessionAuthenticationMiddleware", "kfet.auth.middleware.TemporaryAuthMiddleware", "django.contrib.messages.middleware.MessageMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", diff --git a/cof/settings/dev.py b/cof/settings/dev.py index afc944e0..3bf2f4f9 100644 --- a/cof/settings/dev.py +++ b/cof/settings/dev.py @@ -44,8 +44,8 @@ def show_toolbar(request): if not TESTING: - INSTALLED_APPS += ["debug_toolbar", "debug_panel"] + INSTALLED_APPS += ["debug_toolbar"] - MIDDLEWARE = ["debug_panel.middleware.DebugPanelMiddleware"] + MIDDLEWARE + MIDDLEWARE = ["debug_toolbar.middleware.DebugToolbarMiddleware"] + MIDDLEWARE DEBUG_TOOLBAR_CONFIG = {"SHOW_TOOLBAR_CALLBACK": show_toolbar}