module documentation

Undocumented

Exception MessageFailure 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): (source)

Attempt to add a message to the request using the 'messages' app.

def debug(request, message, extra_tags='', fail_silently=False): (source)

Add a message with the ``DEBUG`` level.

def error(request, message, extra_tags='', fail_silently=False): (source)

Add a message with the ``ERROR`` level.

def get_level(request): (source)

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): (source)

Return the message storage on the request if it exists, otherwise return an empty list.

def info(request, message, extra_tags='', fail_silently=False): (source)

Add a message with the ``INFO`` level.

def set_level(request, level): (source)

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): (source)

Add a message with the ``SUCCESS`` level.

def warning(request, message, extra_tags='', fail_silently=False): (source)

Add a message with the ``WARNING`` level.