You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api-guide/renderers.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,14 +67,18 @@ If your API includes views that can serve both regular webpages and API response
67
67
68
68
## JSONRenderer
69
69
70
-
Renders the request data into `JSON`.
70
+
Renders the request data into `JSON` enforcing ASCII encoding
71
71
72
72
The client may additionally include an `'indent'` media type parameter, in which case the returned `JSON` will be indented. For example `Accept: application/json; indent=4`.
73
73
74
74
**.media_type**: `application/json`
75
75
76
76
**.format**: `'.json'`
77
77
78
+
## UnicodeJSONRenderer
79
+
80
+
Same as `JSONRenderer` but doesn't enforce ASCII encoding
81
+
78
82
## JSONPRenderer
79
83
80
84
Renders the request data into `JSONP`. The `JSONP` media type provides a mechanism of allowing cross-domain AJAX requests, by wrapping a `JSON` response in a javascript callback.
@@ -272,10 +276,10 @@ Exceptions raised and handled by an HTML renderer will attempt to render using o
272
276
* Load and render a template named `api_exception.html`.
273
277
* Render the HTTP status code and text, for example "404 Not Found".
274
278
275
-
**Note**: If `DEBUG=True`, Django's standard traceback error page will be displayed instead of rendering the HTTP status code and text.
276
-
277
279
Templates will render with a `RequestContext` which includes the `status_code` and `details` keys.
278
280
281
+
**Note**: If `DEBUG=True`, Django's standard traceback error page will be displayed instead of rendering the HTTP status code and text.
Copy file name to clipboardExpand all lines: docs/topics/browsable-api.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,17 @@ A suitable replacement theme can be generated using Bootstrap's [Customize Tool]
35
35
36
36
You can also change the navbar variant, which by default is `navbar-inverse`, using the `bootstrap_navbar_variant` block. The empty `{% block bootstrap_navbar_variant %}{% endblock %}` will use the original Bootstrap navbar style.
0 commit comments