Opened 13 years ago

Closed 13 years ago

#18132 closed Uncategorized (invalid)

Problem with: from django.conf.urls import patterns

Reported by: jonny Owned by: nobody
Component: Documentation Version: 1.4
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

I had a small problem with the line of which in the summary.
In the version of django 1.3.1 I have installed, the functions that are to be imported do not belong to

django.conf.urls

but to

django.conf.urls.defaults

This error, if so, is repeated all along parts 3-4.
Thanks for the tutorial. Have a good day,

Nicola

Change History (1)

comment:1 by Claude Paroz, 13 years ago

Resolution: invalid
Status: newclosed

If you have the 1.3 version of Django installed, use the 1.3 version of the documentation also.
https://docs.djangoproject.com/en/1.3/

The import path you mention changed in 1.4 (the old path is still supported). See the note: https://docs.djangoproject.com/en/1.4/topics/http/urls/#module-django.conf.urls

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