from django.contrib import messages
messages.add_message(request, messages.INFO, 'Hello world.')
from django.contrib import messages
messages.add_message(request, messages.INFO, 'Hello world.')
from django.contrib.messages import constants as messages
MESSAGE_TAGS = {
messages.INFO: '',
50: 'critical',
}
messages.debug(request, '%s SQL statements were executed.' % count)
messages.info(request, 'Three credits remain in your account.')
messages.success(request, 'Profile details updated.')
messages.warning(request, 'Your account expires in three days.')
messages.error(request, 'Document deleted.')