aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-08-11 14:18:29 +0200
committerMichał Górny <mgorny@gentoo.org>2013-08-11 22:43:30 +0200
commita581a55815f6821927f99f879b7be63c522afe48 (patch)
tree6ecd62de3296e15f9e27d08ca06e2fec1827c7f8 /okupy/settings
parentUse cache backend for sessions. (diff)
downloadidentity.gentoo.org-a581a55815f6821927f99f879b7be63c522afe48.tar.gz
identity.gentoo.org-a581a55815f6821927f99f879b7be63c522afe48.tar.bz2
identity.gentoo.org-a581a55815f6821927f99f879b7be63c522afe48.zip
Use session storage for messages.
Diffstat (limited to 'okupy/settings')
-rw-r--r--okupy/settings/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/okupy/settings/__init__.py b/okupy/settings/__init__.py
index 0ea4cb0..3c88a1c 100644
--- a/okupy/settings/__init__.py
+++ b/okupy/settings/__init__.py
@@ -22,6 +22,8 @@ LOGOUT_URL = '/logout/'
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
SESSION_COOKIE_AGE = 900
+MESSAGE_STORAGE = 'django.contrib.messages.storage.session.SessionStorage'
+
# Custom authentication backend
AUTHENTICATION_BACKENDS = (
'django_auth_ldap.backend.LDAPBackend',