From: Tollef Fog Heen Date: Sat, 28 Jul 2012 08:48:05 +0000 (+0200) Subject: Bootstrappify messages classes X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=991200168288b4d92ef99110ccded16d30b19c0b;p=peojumk Bootstrappify messages classes --- diff --git a/peojumk/settings.py b/peojumk/settings.py index 8b2f00e..a79f0ff 100644 --- a/peojumk/settings.py +++ b/peojumk/settings.py @@ -163,6 +163,16 @@ LOGGING = { DATE_FORMAT = 'Y-m-d' SHORT_DATE_FORMAT = 'Y-m-d' +from django.contrib.messages import constants as messages + +MESSAGE_TAGS = { + messages.INFO: 'alert-info', + messages.SUCCESS: 'alert-success', + messages.WARNING: '', # default + messages.ERROR: 'alert-error' +} + + try: from local_settings import * except ImportError, exp: