Django Middleware Error - Middleware Changed For 1.7
Whenever I run my local server with my django project I am getting a warning and an error message saying that in Django 1.7 the global middleware classes were changed - even though
Solution 1:
The MIDDLEWARE
setting was introduced in Django 1.10. If you are using Django 1.9 or earlier it will have no effect, and you should be using the MIDDLEWARE_CLASSES
setting instead.
Make sure you are using the correct version of the docs (e.g. Django 1.8, Django 1.11), so that you follow the correct instructions.
Solution 2:
I created my project using django 1.11
but when I transferred the files to the web server, I encountered errors with fcgi
which forced me to downgrade to 1.8
. Therefore the error came up because admin was now expecting MIDDLEWARE_CLASSES
instead of
MIDDLEWARE
.
Changing that solved the error.
Post a Comment for "Django Middleware Error - Middleware Changed For 1.7"