diff options
author | 2019-10-05 14:49:29 +0100 | |
---|---|---|
committer | 2019-10-05 14:49:29 +0100 | |
commit | 23f7f9e5f09e7b5b52810d19ffe7ad31eeabd054 (patch) | |
tree | 92b534413076b32bb722e8f2d75f93ea90832d0c /pydis_site/settings.py | |
parent | Clean up and comment signal tests (diff) |
Add MessageRedirectView and show messages on the index page
Diffstat (limited to 'pydis_site/settings.py')
-rw-r--r-- | pydis_site/settings.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pydis_site/settings.py b/pydis_site/settings.py index 21841e15..919547de 100644 --- a/pydis_site/settings.py +++ b/pydis_site/settings.py @@ -272,6 +272,16 @@ LOGGING = { } } +# Django Messages framework config + +MESSAGE_TAGS = { + messages.DEBUG: 'primary', + messages.INFO: 'info', + messages.SUCCESS: 'success', + messages.WARNING: 'warning', + messages.ERROR: 'danger', +} + # Custom settings for Crispyforms CRISPY_ALLOWED_TEMPLATE_PACKS = ( "bootstrap", |