django 'WSGIRequest' object has no attribute 'session'

登录时报错'WSGIRequest' object has no attribute 'session',我的setting配置是:

MIDDLEWARE_CLASSES = [
   'django.middleware.security.SecurityMiddleware',
   'django.contrib.sessions.middleware.SessionMiddleware',
   'django.middleware.common.CommonMiddleware',
   #'django.middleware.csrf.CsrfViewMiddleware',
   'django.contrib.auth.middleware.AuthenticationMiddleware',
   'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
   'django.contrib.messages.middleware.MessageMiddleware',
   'django.middleware.clickjacking.XFrameOptionsMiddleware',
]


请问哪里出了问题

雨霖铃summer
浏览 1804回答 0
0回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python