Django报错 'WSGIRequest' object has no attribute 'user'

Django版本1.9


image.png

解决办法:在setting.py文件中,把MIDDLEWARE改为MIDDLEWARE_CLASSES,重新运行即可

你可能感兴趣的:(Django报错 'WSGIRequest' object has no attribute 'user')