aldryn / aldryn-django-debug-toolbar

Django Debug Toolbar packaged for the Aldryn.com
BSD 3-Clause "New" or "Revised" License
0 stars 3 forks source link

Not work because of oder of MIDDLEWARE_CLASSES with GZipMiddleware #3

Closed matinfo closed 7 years ago

matinfo commented 7 years ago

Not work after installing in my Divio project. Because need placed after GZipMiddleware in MIDDLEWARE_CLASSES settings.

Workaround: copy all middleware setup in MIDDLEWARE_CLASSES in settings.py and move 'debug_toolbar.middleware.DebugToolbarMiddleware' defined at the beginning just after the middleware 'django.middleware.gzip.GZipMiddleware'.

derek-adair commented 7 years ago

It'd be awesome to get this fixed.... ;)

derek-adair commented 7 years ago

How would this even be solved tho? I'm not sure how this addon is even adding this middleware class, i dont see it anywhere.

evildmp commented 7 years ago

@derek-adair There is a version 1.8.0.1 in the Alpha channel for testing.

derek-adair commented 7 years ago

Works for me!!

👍