aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide/renderers.md
diff options
context:
space:
mode:
authorTom Christie2013-05-05 18:12:35 +0100
committerTom Christie2013-05-05 18:12:35 +0100
commitb70c9cc107743b45edc50c4b4e5e6a7d5a856f01 (patch)
tree2949ff7eda5c81aff8fdfd4d97a7cef8ad55f1c3 /docs/api-guide/renderers.md
parent75b2afcb23d0968d4c7115243cdfaa778da5dca4 (diff)
parent287ff43cdd85a5c2275205bf37e19dea3f69ad01 (diff)
downloaddjango-rest-framework-b70c9cc107743b45edc50c4b4e5e6a7d5a856f01.tar.bz2
Merge master
Diffstat (limited to 'docs/api-guide/renderers.md')
-rw-r--r--docs/api-guide/renderers.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/api-guide/renderers.md b/docs/api-guide/renderers.md
index 00739422..ed733c65 100644
--- a/docs/api-guide/renderers.md
+++ b/docs/api-guide/renderers.md
@@ -57,7 +57,7 @@ Or, if you're using the `@api_view` decorator with function based views.
It's important when specifying the renderer classes for your API to think about what priority you want to assign to each media type. If a client underspecifies the representations it can accept, such as sending an `Accept: */*` header, or not including an `Accept` header at all, then REST framework will select the first renderer in the list to use for the response.
-For example if your API serves JSON responses and the HTML browseable API, you might want to make `JSONRenderer` your default renderer, in order to send `JSON` responses to clients that do not specify an `Accept` header.
+For example if your API serves JSON responses and the HTML browsable API, you might want to make `JSONRenderer` your default renderer, in order to send `JSON` responses to clients that do not specify an `Accept` header.
If your API includes views that can serve both regular webpages and API responses depending on the request, then you might consider making `TemplateHTMLRenderer` your default renderer, in order to play nicely with older browsers that send [broken accept headers][browser-accept-headers].
@@ -167,7 +167,7 @@ See also: `TemplateHTMLRenderer`
## BrowsableAPIRenderer
-Renders data into HTML for the Browseable API. This renderer will determine which other renderer would have been given highest priority, and use that to display an API style response within the HTML page.
+Renders data into HTML for the Browsable API. This renderer will determine which other renderer would have been given highest priority, and use that to display an API style response within the HTML page.
**.media_type**: `text/html`