登录报错'WSGIRequest' object has no attribute 'session'
来源:6-2 用户登录-1
雨霖铃summer
2017-10-29
我的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',
]
请问哪里出错了
写回答
1回答
-
bobby
2017-10-30
你把你的错误截图我看看 应该和后台的view逻辑有关系
00
相似问题