Answers for "django message.tag empty"

0

message tags in django

from django.contrib.messages import constants as messages

MESSAGE_TAGS = {
    messages.DEBUG: 'alert-info',
    messages.INFO: 'alert-info',
    messages.SUCCESS: 'alert-success',
    messages.WARNING: 'alert-warning',
    messages.ERROR: 'alert-danger',
}
Posted by: Guest on December-08-2020

Code answers related to "django message.tag empty"

Python Answers by Framework

Browse Popular Code Answers by Language