Skip to content
Browse files

Fixed #17322 -- Added an example import statement to the HttpResponse…

… docs. Thanks, RoySmith

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 913b39b commit fefbb66bac4097b99539e292f707cd67cf4cb86a @adrianholovaty adrianholovaty committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 docs/ref/request-response.txt
1 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")

0 comments on commit fefbb66

Please sign in to comment.
Something went wrong with that request. Please try again.