Code

Opened 2 years ago

Closed 2 years ago

#17721 closed Uncategorized (invalid)

Error in sample code in "Writing your first Django App Part 3"

Reported by: doverton51@… 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: no UI/UX: no

Description

Page: https://docs.djangoproject.com/en/dev/intro/tutorial03/

Section: Decoupling the URL Confs

The two code snippets in this section both have the following import:

from django.conf.urls import patterns, include, url

this doesn't seem to work on my setup, I think they should read

from django.conf.urls.defaults import patterns, include, url

Attachments (0)

Change History (1)

comment:1 Changed 2 years ago by claudep

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

You are probably using the 1.3 code, and the docs you mention is for the development version.

Use https://docs.djangoproject.com/en/1.3/intro/tutorial03/ instead.

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.