Code

Opened 2 years ago

Closed 2 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.

Attachments (0)

Change History (1)

comment:1 Changed 2 years ago by mlavin

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to worksforme
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.