Opened 13 years ago

Closed 13 years ago

#17456 closed Uncategorized (worksforme)

typo in import statements (leaves out "defaults")

Reported by: chris.makler@… Owned by: nobody
Component: Documentation Version: 1.3
Severity: Normal Keywords: import urls
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hi,

At some point in this documentation, in the urls.py files, you switch from

from django.conf.urls.defaults

to

from django.conf.urls

Because everything is copy-and-pasted, it takes a while to notice the lack of it...but if you leave off "defaults" it doesn't work, at least with Python 2.7.

Change History (1)

comment:1 by Mark Lavin, 13 years ago

Resolution: worksforme
Status: newclosed

Looking through the 1.3 tutorial I don't see this inconsistency. You are most likely looking at the dev documentation by mistake. See the 1.4 release notes for the relevant change: https://docs.djangoproject.com/en/dev/releases/1.4-alpha-1/#django-conf-urls-defaults

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