Code

Opened 3 years ago

Closed 3 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..."

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by julien

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

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 to django.conf.urls.

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.