Opened 13 years ago
Closed 13 years ago
#16868 closed Bug (invalid)
Typo in last code fragment in tutorial part 3
Reported by: | hythloday | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.3 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
Hi, thanks for the excellent tutorial. There's a typo in the last fragment of tutorial page 3, the refactored polls/urls.py:
from django.conf.urls import patterns, include, url
It should be "from django.conf.urls.default import..."
Note:
See TracTickets
for help on using tickets.
Thanks for the report, but I assume you must be looking at the wrong version of the doc (i.e. https://docs.djangoproject.com/en/dev/intro/tutorial03/ instead of https://docs.djangoproject.com/en/1.3/intro/tutorial03/). Since quite recently in r16818, the functions in
django.conf.urls.defaults
have been moved todjango.conf.urls
.