From fefbb66bac4097b99539e292f707cd67cf4cb86a Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sat, 17 Dec 2011 02:19:14 +0000 Subject: [PATCH] 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 --- docs/ref/request-response.txt | 1 + 1 file changed, 1 insertion(+) 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")