Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Django messages framework

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.')
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #Django #messages #framework
ADD COMMENT
Topic
Name
5+2 =