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'
我也是一样,请问你这个问题解决了吗?