module documentation

Undocumented

Class ​Message​Failure Undocumented
Function add​_message Attempt to add a message to the request using the 'messages' app.
Function debug Add a message with the DEBUG level.
Function error Add a message with the ERROR level.
Function get​_level Return the minimum level of messages to be recorded.
Function get​_messages Return the message storage on the request if it exists, otherwise return an empty list.
Function info Add a message with the INFO level.
Function set​_level Set the minimum level of messages to be recorded, and return True if the level was recorded successfully.
Function success Add a message with the SUCCESS level.
Function warning Add a message with the WARNING level.
def add_message(request, level, message, extra_tags='', fail_silently=False):
Attempt to add a message to the request using the 'messages' app.
def debug(request, message, extra_tags='', fail_silently=False):
Add a message with the DEBUG level.
def error(request, message, extra_tags='', fail_silently=False):
Add a message with the ERROR level.
def get_level(request):

Return the minimum level of messages to be recorded.

The default level is the MESSAGE_LEVEL setting. If this is not found, use the INFO level.

def get_messages(request):
Return the message storage on the request if it exists, otherwise return an empty list.
def info(request, message, extra_tags='', fail_silently=False):
Add a message with the INFO level.
def set_level(request, level):

Set the minimum level of messages to be recorded, and return True if the level was recorded successfully.

If set to None, use the default level (see the get_level() function).

def success(request, message, extra_tags='', fail_silently=False):
Add a message with the SUCCESS level.
def warning(request, message, extra_tags='', fail_silently=False):
Add a message with the WARNING level.