Answers for "how to display message in html django"

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 "how to display message in html django"

Python Answers by Framework

Browse Popular Code Answers by Language