Opened 4 years ago

Closed 4 years ago

#16932 closed New feature (duplicate)

small problem with import django.conf.urls

Reported by: adamhammouda3@… 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

In lines (eg in polls/urls.py from your tutorial) where you say "from django.conf.urls import patterns, include, url", you should say "from django.conf.urls.defaults . Probably just a minor oversight from the latest release, but urls is a directory from which you cannot access the specified functions --defaults.py has the functions specified.

Change History (1)

comment:1 Changed 4 years ago by julien

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

Thanks for the report but the tutorial is in fact correct since the functions in django.conf.urls.defaults have recently been moved to django.conf.urls. 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/).

Now, this same (invalid) documentation bug has been reported multiple times in the last few days (i.e. in #16868, #16890). This is suggesting that it should be made more obvious on screen which version of the doc is being viewed. I've created this new ticket to specifically discuss this issue: #16933.

Thanks again!

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