I have not made any changes to the order of MIDDLEWARE or anything else
that wasn't mentioned in the tutorial in the settings.py and changing the
name from MIDDLEWARE to MIDDLEWARE_CLASSES solves the problem.
It seems like the default installation is somehow broken.
--
Ticket URL: <https://code.djangoproject.com/ticket/27194>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_better_patch: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_docs: => 0
Comment:
I guess you might have created your project with Django 1.10 but are using
Django 1.9 or earlier. Please see TicketClosingReasons/UseSupportChannels
for ways to get help.
--
Ticket URL: <https://code.djangoproject.com/ticket/27194#comment:1>