1đź‘Ť
The Middleware
class in that library is using the “old” style middleware from Django < 1.10.
You can see the note on the changes in the Django docs:
A new style of middleware was introduced for use with the new MIDDLEWARE setting. If you’re using the old MIDDLEWARE_CLASSES setting, you’ll need to adapt old, custom middleware before using the new setting. This document describes new-style middleware. Refer to this page in older versions of the documentation for a description of how old-style middleware works.
It will need to be adapted for use with Django >= 1.10
👤Timmy O'Mahony
Source:stackexchange.com