From 23f7f9e5f09e7b5b52810d19ffe7ad31eeabd054 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Sat, 5 Oct 2019 14:49:29 +0100 Subject: Add MessageRedirectView and show messages on the index page --- pydis_site/settings.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pydis_site/settings.py') 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", -- cgit v1.2.3