Skip to content

Commit 4dbf2d9

Browse files
committed
added comment about error behavior with DEBUG=True
1 parent a0e3c44 commit 4dbf2d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/api-guide/renderers.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,8 @@ Exceptions raised and handled by an HTML renderer will attempt to render using o
272272
* Load and render a template named `api_exception.html`.
273273
* Render the HTTP status code and text, for example "404 Not Found".
274274

275+
**Note**: If `DEBUG=True`, Django's standard traceback error page will be displayed instead of rendering the HTTP status code and text.
276+
275277
Templates will render with a `RequestContext` which includes the `status_code` and `details` keys.
276278

277279
---

0 commit comments

Comments
 (0)