Mercurial > public > sg101
diff gpp/settings.py @ 436:241c80ff16c5
For #211, added message quotas; can't send or receive private messages if your outbox/inbox quota has been exceeded.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 13 May 2011 02:06:53 +0000 |
parents | 76ba9478ebbd |
children | 345825e6dcae |
line wrap: on
line diff
--- a/gpp/settings.py Fri May 13 00:12:53 2011 +0000 +++ b/gpp/settings.py Fri May 13 02:06:53 2011 +0000 @@ -4,6 +4,8 @@ import platform from decimal import Decimal +from django.contrib.messages import constants as message_constants + import local_settings project_path = os.path.abspath(os.path.split(__file__)[0]) @@ -175,6 +177,13 @@ # Messages ####################################################################### MESSAGE_STORAGE = 'django.contrib.messages.storage.session.SessionStorage' +MESSAGE_TAGS = { + message_constants.DEBUG: 'notice', + message_constants.INFO: 'info', + message_constants.SUCCESS: 'success', + message_constants.WARNING: 'alert', + message_constants.ERROR: 'error', +} ####################################################################### # Email