HttpResponse documentation should give example import
|Reported by:||RoySmith||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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