[Django] #22899: Bad code

7 views
Skip to first unread message

Django

unread,
Jun 25, 2014, 1:35:30 AM6/25/14
to django-...@googlegroups.com
#22899: Bad code
-------------------------------+--------------------
Reporter: anonymous | Owner: nobody
Type: Uncategorized | Status: new
Component: Documentation | Version: 1.6
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
On this page: [https://docs.djangoproject.com/en/1.6/intro/tutorial03/],
the import statement should be:

{{{
from django.http.response import HttpResponse
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/22899>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jun 25, 2014, 2:23:27 AM6/25/14
to django-...@googlegroups.com
#22899: Bad code
-------------------------------+--------------------------------------
Reporter: anonymous | Owner: nobody
Type: Uncategorized | Status: closed
Component: Documentation | Version: 1.6
Severity: Normal | Resolution: worksforme
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by valberg):

* status: new => closed
* needs_better_patch: => 0
* resolution: => worksforme
* needs_tests: => 0
* needs_docs: => 0


Comment:

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.

--
Ticket URL: <https://code.djangoproject.com/ticket/22899#comment:1>

Reply all
Reply to author
Forward
0 new messages