I\'m trying to allow CORS in my app, so that my cross-domain javascript client can access my API, I\'ve installed django-cors-headers. And I\'m now trying to add the middlew
If you have custom middleware and you've moved from MIDDLEWARE_CLASSES to MIDDLEWARE, then you need to update your middleware. Details on: this Django documentation page. TL;DR, subclass from MiddlewareMixin instead of object:
from django.utils.deprecation import MiddlewareMixin
class FOOMiddleware(MiddlewareMixin):
pass