Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
435:b2f02766cc72 | 436:241c80ff16c5 |
---|---|
1 # Django settings for gpp project. | 1 # Django settings for gpp project. |
2 | 2 |
3 import os | 3 import os |
4 import platform | 4 import platform |
5 from decimal import Decimal | 5 from decimal import Decimal |
6 | |
7 from django.contrib.messages import constants as message_constants | |
6 | 8 |
7 import local_settings | 9 import local_settings |
8 | 10 |
9 project_path = os.path.abspath(os.path.split(__file__)[0]) | 11 project_path = os.path.abspath(os.path.split(__file__)[0]) |
10 | 12 |
173 | 175 |
174 ####################################################################### | 176 ####################################################################### |
175 # Messages | 177 # Messages |
176 ####################################################################### | 178 ####################################################################### |
177 MESSAGE_STORAGE = 'django.contrib.messages.storage.session.SessionStorage' | 179 MESSAGE_STORAGE = 'django.contrib.messages.storage.session.SessionStorage' |
180 MESSAGE_TAGS = { | |
181 message_constants.DEBUG: 'notice', | |
182 message_constants.INFO: 'info', | |
183 message_constants.SUCCESS: 'success', | |
184 message_constants.WARNING: 'alert', | |
185 message_constants.ERROR: 'error', | |
186 } | |
178 | 187 |
179 ####################################################################### | 188 ####################################################################### |
180 # Email | 189 # Email |
181 ####################################################################### | 190 ####################################################################### |
182 EMAIL_HOST = local_settings.EMAIL_HOST | 191 EMAIL_HOST = local_settings.EMAIL_HOST |