Answers for "django message if tag error_message"

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

Python Answers by Framework

Browse Popular Code Answers by Language