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',
}
from django.contrib import messages
messages.add_message(request, messages.INFO, 'Hello world.')
from django.contrib.messages import constants as message_constants
MESSAGE_TAGS = {message_constants.INFO: ''}