Kaydet (Commit) fefbb66b authored tarafından Adrian Holovaty's avatar Adrian Holovaty

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
üst 913b39b3
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment