mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-30 01:49:50 +03:00
Merge 4dbf2d907f
into 304c07681d
This commit is contained in:
commit
f55825445d
|
@ -272,6 +272,8 @@ Exceptions raised and handled by an HTML renderer will attempt to render using o
|
|||
* Load and render a template named `api_exception.html`.
|
||||
* Render the HTTP status code and text, for example "404 Not Found".
|
||||
|
||||
**Note**: If `DEBUG=True`, Django's standard traceback error page will be displayed instead of rendering the HTTP status code and text.
|
||||
|
||||
Templates will render with a `RequestContext` which includes the `status_code` and `details` keys.
|
||||
|
||||
---
|
||||
|
|
Loading…
Reference in New Issue
Block a user