From 6b37ea99e2980fc88b5bc9a985bcda650540ce5b Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 28 Mar 2010 03:06:35 +0000 Subject: Mention content-type settings. --- docs/narr/views.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/narr/views.rst b/docs/narr/views.rst index f88f50d92..75cd6cc92 100644 --- a/docs/narr/views.rst +++ b/docs/narr/views.rst @@ -395,7 +395,8 @@ The ``json`` renderer is a renderer which renders view callable results to :term:`JSON`. If a view callable returns a non-Response object it is called. It passes the return value through the ``json.dumps`` standard library function, and wraps the result in a -response object. +response object. It also sets the response content-type to +``application/json``. Here's an example of a view that returns a dictionary. If the ``json`` renderer is specified in the configuration for this view, the -- cgit v1.2.3