From f123348c7dfb50353a6a555bfe44d11defa60269 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 20 Jun 2010 23:56:01 -0500 Subject: 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 --- settings.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'settings.py') diff --git a/settings.py b/settings.py index 68eaaad..13c6cc8 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', -- cgit v1.2.3-24-g4f1b