Opened 13 years ago

Closed 13 years ago

#17322 closed Uncategorized (fixed)

HttpResponse documentation should give example import

Reported by: Roy Smith Owned by: nobody
Component: Documentation Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In https://docs.djangoproject.com/en/1.3/ref/request-response/, it says:

The HttpResponse class lives in the django.http module.

I knew I wanted HttpResponse, but couldn't remember what import I needed. So, I searched for the word "import" on that page, and it was nowhere to be found! If one of the examples had:

from django.http import HttpResponse

I would have found it quickly.

Change History (3)

comment:1 by Roy Smith, 13 years ago

Component: UncategorizedDocumentation

comment:2 by Aymeric Augustin, 13 years ago

Triage Stage: UnreviewedAccepted

comment:3 by Adrian Holovaty, 13 years ago

Resolution: fixed
Status: newclosed

In [17217]:

Fixed #17322 -- Added an example import statement to the HttpResponse docs. Thanks, RoySmith

Note: See TracTickets for help on using tickets.
Back to Top