Change django message storage backends default.

Due to original cookie storage backends have limit 2048 bytes,
change it to fallbackstorage, which could store extra message in
session storage.

Related django storage illustration
https://docs.djangoproject.com/en/1.6/ref/contrib/messages/#module-django.contrib.messages

Closes-Bug: #1168541
Change-Id: Ieed4db962ccdadcb346c8ca7e6e789766f9838e5
This commit is contained in:
jackychen 2014-06-23 10:35:20 +08:00 committed by ChenZheng
parent 440ea19f6f
commit d68e68c5bd

View File

@ -229,7 +229,7 @@ INSTALLED_APPS = [
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
AUTHENTICATION_BACKENDS = ('openstack_auth.backend.KeystoneBackend',)
MESSAGE_STORAGE = 'django.contrib.messages.storage.cookie.CookieStorage'
MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies'
SESSION_COOKIE_HTTPONLY = True