summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2011-12-17 02:19:14 +0000
committerAdrian Holovaty <adrian@holovaty.com>2011-12-17 02:19:14 +0000
commitfefbb66bac4097b99539e292f707cd67cf4cb86a (patch)
treeeb7d1a6652636c24f9ccbead11a024e32f68c48f
parent913b39b37f6ea9002b9b1fb944812bb623b962eb (diff)
Fixed #17322 -- Added an example import statement to the HttpResponse docs. Thanks, RoySmith
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17217 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--docs/ref/request-response.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt
index b0be311de9..302a061089 100644
--- a/docs/ref/request-response.txt
+++ b/docs/ref/request-response.txt
@@ -536,6 +536,7 @@ Passing strings
Typical usage is to pass the contents of the page, as a string, to the
:class:`HttpResponse` constructor::
+ >>> from django.http import HttpResponse
>>> response = HttpResponse("Here's the text of the Web page.")
>>> response = HttpResponse("Text only, please.", mimetype="text/plain")