summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGabriel Hurley <gabehr@gmail.com>2010-10-20 21:19:50 +0000
committerGabriel Hurley <gabehr@gmail.com>2010-10-20 21:19:50 +0000
commit1160d81e44876f02cdb42ce7500ba1dd43067fae (patch)
tree9012924124eb6fa2bf35ac97ff3140cb08a75ae8 /docs
parentc2cb82b3c713ddcd33e547049edd3b850cee960c (diff)
[1.2.X] Fixed #14432 -- Added an import statement which was previously implied in tutorial 3's URLconf to make it as explicit as possible for new users. Thanks to gorus for the report and andrews for the patch.
Backport of [14302] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14303 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/intro/tutorial03.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/intro/tutorial03.txt b/docs/intro/tutorial03.txt
index af686bcbde..5b2bf0ccec 100644
--- a/docs/intro/tutorial03.txt
+++ b/docs/intro/tutorial03.txt
@@ -498,9 +498,12 @@ Here's what happens if a user goes to "/polls/34/" in this system:
remaining text -- ``"34/"`` -- to the 'polls.urls' URLconf for
further processing.
-Now that we've decoupled that, we need to decouple the 'polls.urls'
+Now that we've decoupled that, we need to decouple the ``polls.urls``
URLconf by removing the leading "polls/" from each line, and removing the
-lines registering the admin site::
+lines registering the admin site. Your ``polls.urls`` file should now look like
+this::
+
+ from django.conf.urls.defaults import *
urlpatterns = patterns('polls.views',
(r'^$', 'index'),