Opened 13 years ago

Closed 13 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

Change History (1)

comment:1 by Claude Paroz, 13 years ago

Resolution: invalid
Status: newclosed

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.

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