File "/.../appname/wsgi.py", line 14, in <module>
application = get_wsgi_application()
File "/.../pythonenv/python3.5/lib/python3.5/site-packages/django/core/wsgi.py", line 14, in get_wsgi_application
return WSGIHandler()
File "/.../pythonenv/python3.5/lib/python3.5/site-packages/django/core/handlers/wsgi.py", line 153, in __init__
self.load_middleware()
File "/.../pythonenv/python3.5/lib/python3.5/site-packages/django/core/handlers/base.py", line 82, in load_middleware
mw_instance = middleware(handler)
TypeError: object() takes no parameters
The following settings directive
Doesn't work for the new Django 1.10 MIDDLEWARE new-style setup.
See https://docs.djangoproject.com/en/1.10/releases/1.10/#new-style-middleware
You end up with an error like this: