diff options
| author | Victor Shih | 2013-05-01 21:26:40 -0700 | 
|---|---|---|
| committer | Victor Shih | 2013-05-01 21:26:40 -0700 | 
| commit | 8cabae22c5330da2e0a15a6d61ef038a6447756a (patch) | |
| tree | fbebe8abad45c92f9dc0d3bb87b1d1ecbbdeeb61 /docs/api-guide/renderers.md | |
| parent | 198b679e02954ebcfac37e9d0146caf575df4f5a (diff) | |
| download | django-rest-framework-8cabae22c5330da2e0a15a6d61ef038a6447756a.tar.bz2 | |
Example and spelling fixes. Change "browseable" to "browsable" for consistency.
Diffstat (limited to 'docs/api-guide/renderers.md')
| -rw-r--r-- | docs/api-guide/renderers.md | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/docs/api-guide/renderers.md b/docs/api-guide/renderers.md index 3c8396aa..19a6b90f 100644 --- a/docs/api-guide/renderers.md +++ b/docs/api-guide/renderers.md @@ -56,7 +56,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]. @@ -166,7 +166,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` | 
