Opened 5 years ago

Closed 5 years ago

#17322 closed Uncategorized (fixed)

HttpResponse documentation should give example import

Reported by: RoySmith 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 RoySmith

  • Component changed from Uncategorized to Documentation
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 5 years ago by aaugustin

  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 5 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

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