首页新闻找找看学习计划

Django1.11 使用 session 报错 AttributeError: 'SessionStore' object has no attribute '_session_cache'

0
悬赏园豆:50 [待解决问题]
setting配置中MIDDLEWARE 已经添加了 'django.contrib.sessions.middleware.SessionMiddleware'   

存放session的代码如下:

request.session['mysession'] = 'textsession'



完整报错信息如下:

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/contrib/sessions/backends/base.py", line 202, in _get_session
return self._session_cache
AttributeError: 'SessionStore' object has no attribute '_session_cache'

MalcolmFeng的主页 MalcolmFeng | 初学一级 | 园豆:2
提问于:2017-06-10 16:33
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册