如果还是不行,可以用这种方法:
$ vi /etc/openstack-dashboard/local_settings.py
#SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
$ service apache2 reload
# https://ask.openstack.org/en/que ... -a-new-session-key/
或者
$ vi /etc/openstack-dashboard/local_settings.py
SESSION_ENGINE = 'django.contrib.sessions.backends.file'
$ systemctl restart apache2.service memcached.service
# http://www.2cto.com/net/201702/600066.html
I was getting this error running a local, development version of a Django project, because it was periodically having trouble connecting to a non-local cache. I realized that I could change my session backend to a file-based session to address the issue .
In the settings file for this local, development version of Django, I simply set the following value:
SESSION_ENGINE = 'django.contrib.sessions.backends.file'
This is not the solution I would use in a production environment, and not the solution I would suggest to the original poster, but it took me a few minutes to figure out what the issue was and this is one of the only results that appeared when I Googled, so I figured I'd post here possibly to help out others with a similar issue.
# https://ask.openstack.org/en/que ... have-made-requires/
# http://stackoverflow.com/questio ... e-a-new-session-key
# https://bugs.launchpad.net/openstack-manuals/+bug/1585473
|