Opened 5 years ago

Closed 5 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


In, 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 Changed 5 years ago by Roy Smith

Component: UncategorizedDocumentation
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset

comment:2 Changed 5 years ago by Aymeric Augustin

Triage Stage: UnreviewedAccepted

comment:3 Changed 5 years ago by Adrian Holovaty

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