summaryrefslogtreecommitdiff
path: root/settings.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-06-20 23:56:01 -0500
committerDan McGee <dan@archlinux.org>2010-06-20 23:56:03 -0500
commitf123348c7dfb50353a6a555bfe44d11defa60269 (patch)
tree9d282ebab1013033c20a11d68511d15f57f5b8e9 /settings.py
parent67f6bc546ec20bd1912aae385220855f9a41a93d (diff)
Update to the new messages framework
This is also another step in making sure we don't unnecessarily access the Django session object and thus add a Vary cache control header we don't want. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'settings.py')
-rw-r--r--settings.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/settings.py b/settings.py
index 68eaaad4..13c6cc88 100644
--- a/settings.py
+++ b/settings.py
@@ -46,6 +46,7 @@ TEMPLATE_LOADERS = (
MIDDLEWARE_CLASSES = (
'main.middleware.UpdateCacheMiddleware',
"django.contrib.sessions.middleware.SessionMiddleware",
+ 'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
"django.contrib.auth.middleware.AuthenticationMiddleware",
'django.middleware.http.ConditionalGetMiddleware',
@@ -68,9 +69,12 @@ TEMPLATE_DIRS = (
# format is app.model
AUTH_PROFILE_MODULE = 'main.UserProfile'
+MESSAGE_STORAGE = 'django.contrib.messages.storage.session.SessionStorage'
+
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
+ 'django.contrib.messages',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.sitemaps',