Commit e1400074d7ce0023371287460c0bb87c8f70f80b
1 parent
bab5c53d
Exists in
master
and in
5 other branches
Message tags settings #55
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
amadeus/settings.py
... | ... | @@ -170,6 +170,16 @@ LOGS_URL = 'logs/' |
170 | 170 | EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' |
171 | 171 | DEFAULT_FROM_EMAIL = 'admin@admin.com' |
172 | 172 | |
173 | +# Messages | |
174 | +from django.contrib.messages import constants as messages_constants | |
175 | +MESSAGE_TAGS = { | |
176 | + messages_constants.DEBUG: 'debug', | |
177 | + messages_constants.INFO: 'info', | |
178 | + messages_constants.SUCCESS: 'success', | |
179 | + messages_constants.WARNING: 'warning', | |
180 | + messages_constants.ERROR: 'danger', | |
181 | +} | |
182 | + | |
173 | 183 | |
174 | 184 | try: |
175 | 185 | from .local_settings import * | ... | ... |