django messages template code example
Example 1: django messages
from django.contrib import messages
messages.add_message(request, messages.INFO, 'Hello world.')
Example 2: django messages
from django.contrib.messages import constants as messages
MESSAGE_TAGS = {
messages.INFO: '',
50: 'critical',
}