module documentation
Undocumented
Function | bad |
400 error handler. |
Function | page |
Default 404 handler. |
Function | permission |
Permission denied (403) handler. |
Function | server |
500 error handler. |
Constant | ERROR |
Undocumented |
Constant | ERROR |
Undocumented |
Constant | ERROR |
Undocumented |
Constant | ERROR |
Undocumented |
Constant | ERROR |
Undocumented |
@requires_csrf_token
def bad_request(request, exception, template_name=ERROR_400_TEMPLATE_NAME): (source) ¶
def bad_request(request, exception, template_name=ERROR_400_TEMPLATE_NAME): (source) ¶
400 error handler. Templates: :template:`400.html` Context: None
@requires_csrf_token
def page_not_found(request, exception, template_name=ERROR_404_TEMPLATE_NAME): (source) ¶
def page_not_found(request, exception, template_name=ERROR_404_TEMPLATE_NAME): (source) ¶
Default 404 handler. Templates: :template:`404.html` Context: request_path The path of the requested URL (e.g., '/app/pages/bad_page/'). It's quoted to prevent a content injection attack. exception The message from the exception which triggered the 404 (if one was supplied), or the exception class name
@requires_csrf_token
def permission_denied(request, exception, template_name=ERROR_403_TEMPLATE_NAME): (source) ¶
def permission_denied(request, exception, template_name=ERROR_403_TEMPLATE_NAME): (source) ¶
Permission denied (403) handler. Templates: :template:`403.html` Context: exception The message from the exception which triggered the 403 (if one was supplied). If the template does not exist, an Http403 response containing the text "403 Forbidden" (as per RFC 7231) will be returned.