object() takes no parameters in django 1.10 -
i'm trying allow cors in app, cross-domain javascript client can access api, i've installed django-cors-headers . , i'm trying add middleware: middleware = [ 'corsheaders.middleware.corsmiddleware', # remove , works 'django.middleware.security.securitymiddleware', 'django.contrib.sessions.middleware.sessionmiddleware', 'django.middleware.common.commonmiddleware', 'django.middleware.csrf.csrfviewmiddleware', 'django.contrib.auth.middleware.authenticationmiddleware', 'django.contrib.messages.middleware.messagemiddleware', 'django.middleware.clickjacking.xframeoptionsmiddleware', ] however gives me typeerror: typeerror: object() takes no parameters this worked fine before django 1.10 update. ideas? this issue says django-cors-headers no longer supported, , suggests using django-cors-middleware instead.