diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2011-12-17 02:19:14 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2011-12-17 02:19:14 +0000 |
| commit | fefbb66bac4097b99539e292f707cd67cf4cb86a (patch) | |
| tree | eb7d1a6652636c24f9ccbead11a024e32f68c48f /docs | |
| parent | 913b39b37f6ea9002b9b1fb944812bb623b962eb (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
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/request-response.txt | 1 |
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") |
