Debug toolbar fix

This commit is contained in:
R. Miles McCain 2021-07-31 23:44:03 +00:00
parent 31ffa47fd3
commit 57c8695bcc
No known key found for this signature in database
GPG Key ID: B932432778A96560

View File

@ -61,8 +61,9 @@ INSTALLED_APPS = [
"analytics", "analytics",
"allauth", "allauth",
"allauth.account", "allauth.account",
"allauth.socialaccount" "allauth.socialaccount",
] + (["debug_toolbar"] if DEBUG else []) "debug_toolbar",
]
MIDDLEWARE = [ MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware", "django.middleware.security.SecurityMiddleware",
@ -74,7 +75,8 @@ MIDDLEWARE = [
"django.contrib.sites.middleware.CurrentSiteMiddleware", "django.contrib.sites.middleware.CurrentSiteMiddleware",
"django.contrib.messages.middleware.MessageMiddleware", "django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware",
] + (["debug_toolbar.middleware.DebugToolbarMiddleware"] if DEBUG else []) "debug_toolbar.middleware.DebugToolbarMiddleware",
]
ROOT_URLCONF = "shynet.urls" ROOT_URLCONF = "shynet.urls"