Commit a08d1701 authored by Mathieu Courcelles's avatar Mathieu Courcelles

Moves debug toolbar middleware to base to avoid system check warning

parent 153f2af1
Pipeline #14987554 passed with stage
in 1 minute and 16 seconds
......@@ -103,6 +103,7 @@ MIDDLEWARE = [
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware',
# Uncomment the next line for simple clickjacking protection:
# 'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
......
......@@ -23,7 +23,6 @@ MANAGERS = ADMINS
if DEBUG:
DEBUG = True
MIDDLEWARE.insert(0, 'debug_toolbar.middleware.DebugToolbarMiddleware')
def toolbar_callback(request):
return True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment