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")