warning
Add a message with the WARNING level.
def warning(
request: HttpRequest,
message: str,
extra_tags: str,
fail_silently: bool = False
) - > null
Add a message with the WARNING level.
Parameters
| Name | Type | Description |
|---|---|---|
| request | HttpRequest | The current HTTP request instance used to store the message. |
| message | str | The content of the warning message to be displayed to the user. |
| extra_tags | str | Space-separated string of custom CSS classes or identifiers to apply to the message. |
| fail_silently | bool = False | If True, suppresses MessageFailure errors if the message backend is not configured. |
Returns
| Type | Description |
|---|---|
null | Nothing is returned; the message is added to the request's message storage. |