martin-bts / askbot-devel

Askbot is a Django/Python Q&A forum. **Contributors README**: https://github.com/ASKBOT/askbot-devel#how-to-contribute. Commercial hosting of Askbot and support are available at https://askbot.com
Other
0 stars 2 forks source link

All Middleware is broken #51

Closed martin-bts closed 5 years ago

martin-bts commented 5 years ago

Middlewares work differently now.

https://docs.djangoproject.com/en/2.2/topics/http/middleware/

https://docs.djangoproject.com/en/1.11/topics/http/middleware/#upgrading-middleware

Introduced with 1.10, enforced with 2.0, there is no MIDDLEWARE_CLASSES anymore, only MIDDLEWARE. Shouldn't cause problems, but Askbot has a few middlewares to take care of.

martin-bts commented 5 years ago

Rewrote middlewares in https://github.com/martin-bts/askbot-devel/commit/ac623f33592b4955dc413996c26662e4d499d188