From d68e68c5bd743767ed3ff276d849f174e03cffbe Mon Sep 17 00:00:00 2001 From: jackychen Date: Mon, 23 Jun 2014 10:35:20 +0800 Subject: [PATCH] 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 --- openstack_dashboard/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_dashboard/settings.py b/openstack_dashboard/settings.py index 146702e78..2ce01d63f 100644 --- a/openstack_dashboard/settings.py +++ b/openstack_dashboard/settings.py @@ -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