Django admin 中抛出 'WSGIRequest' object has no attribute 'user'的错误

在stackoverflow找到了解决方案:

To resolve this go to settings.py where there is new-style MIDDLEWARE (introduced in Django 1.10)

Change that to old-style MIDDLEWARE_CLASSES

https://docs.djangoproject.com/en/stable/topics/http/middleware/#upgrading-pre-django-1-10-style-middleware

posted @ 2019-04-19 15:52  梁少华  阅读(1231)  评论(0编辑  收藏  举报