Opened 7 years ago

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



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 Changed 7 years ago by Claude Paroz

Resolution: invalid
Status: newclosed

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

Use instead.

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