Upgrade to new-style middleware
1.10 introduced new style middleware. It doesn't seem to be set as a depreciation yet but we should upgrade. I've tried swapping
MIDDLEWARE and things break so this may require effort.
A new style of middleware is introduced to solve the lack of strict request/response layering of the old-style of middleware described in DEP 0005. You’ll need to adapt old, custom middleware and switch from the MIDDLEWARE_CLASSES setting to the new MIDDLEWARE setting to take advantage of the improvements.