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