Opened 11 years ago

Closed 11 years ago

#22899 closed Uncategorized (worksforme)

Bad code

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

Description

On this page: https://docs.djangoproject.com/en/1.6/intro/tutorial03/, the import statement should be:

from django.http.response import HttpResponse

Change History (1)

comment:1 by Vidir Valberg Gudmundsson, 11 years ago

Resolution: worksforme
Status: newclosed

The import statements in the mentioned documentation work fine for me.

Take at look at the module:

https://github.com/django/django/blob/master/django/http/__init__.py

HttpResponse is imported in __init__.py and is therefore available.

Or maybe I've misunderstood you? If so, just reopen the ticket.

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