diff --git a/envs/common.py b/envs/common.py index 2b01a0911e..6a21fafc71 100644 --- a/envs/common.py +++ b/envs/common.py @@ -81,6 +81,7 @@ TEMPLATE_DIRS = ( TEMPLATE_CONTEXT_PROCESSORS = ( 'django.core.context_processors.request', 'askbot.context.application_settings', + 'django.contrib.messages.context_processors.messages', #'django.core.context_processors.i18n', 'askbot.user_messages.context_processors.user_messages',#must be before auth 'django.core.context_processors.auth', #this is required for admin @@ -148,6 +149,9 @@ LANGUAGE_CODE = 'en' # http://www.i18nguy.com/unicode/language-identifiers.html USE_I18N = True USE_L10N = True +# Messages +MESSAGE_STORAGE = 'django.contrib.messages.storage.session.SessionStorage' + #################################### AWS ####################################### # S3BotoStorage insists on a timeout for uploaded assets. We should make it # permanent instead, but rather than trying to figure out exactly where that