Django Middleware Error - Middleware changed for 1.7

后端 未结 2 1398
梦谈多话
梦谈多话 2021-01-11 17:59

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

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-11 18:07

    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.

提交回复
热议问题