HttpResponse documentation should give example import
|Reported by:||Roy Smith||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.