Messages
This commit is contained in:
1 parent
2d7af0e65f
commit
845cc0d1ab
6 files changed
+50
-3
No files matched your search
@@ -121,4 +121,12 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
||||
LOGIN_REDIRECT_URL = '/polls/'
|
||||
LOGOUT_REDIRECT_URL = '/polls/'
|
||||
|
||||
from django.contrib.messages import constants as messages
|
||||
|
||||
MESSAGE_TAGS = {
|
||||
messages.DEBUG: 'alert-secondary',
|
||||
messages.INFO: 'alert-info',
|
||||
messages.SUCCESS: 'alert-success',
|
||||
messages.WARNING: 'alert-warning',
|
||||
messages.ERROR: 'alert-danger',
|
||||
}
|
||||
Reference in new issue
Block a user