Once more: Django 1.10.
New middleware style. In the documentation we have:
https://docs.djangoproject.com/en/1.10/releases/1.10/#new-style-middleware
I need Django Debug Toolbar. Release 1.5 is compatible with Django 1.10.
This is installation documentation: https://django-debug-toolbar.readthedocs.io/en/stable/installation.html
The Django Debug Toolbar needs:
MIDDLEWARE_CLASSES = [
# ...
'debug_toolbar.middleware.DebugToolbarMiddleware',
# ...
]
Well, I tried to add 'debug_toolbar.middleware.DebugToolbarMiddleware' to existing MIDDLEWARE. No success (the server doesn't run, some exceptions are risen).
Then I just renamed MIDDLEWARE into MIDDLEWARE_CLASSES. Working.
What troubles me: I can't find in the documentation that MIDDLEWARE_CLASSES is supported. But everything works.
Could you give me some piece of advice: is it Ok to use MIDDLEWARE_CLASSES settings or not? And where to read about this.