summaryrefslogtreecommitdiff
path: root/docs/intro/tutorial03.txt
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2010-09-13 22:47:20 +0000
committerLuke Plant <L.Plant.98@cantab.net>2010-09-13 22:47:20 +0000
commit76366aab18a0308f1465feb6236bff9e2907e570 (patch)
treeeea8053a7bb2cf8f93aa4a31b6c9de88833f8d5b /docs/intro/tutorial03.txt
parent3f9054dd777a80cb6ccba0abcad8e2b43537c123 (diff)
Fixed #13623 - code in intro-tutorial03 missing an import statement
Thanks to lescoutinhovr@gmail.com, AMJ for the report, and to zerok/timo for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13847 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/intro/tutorial03.txt')
-rw-r--r--docs/intro/tutorial03.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/intro/tutorial03.txt b/docs/intro/tutorial03.txt
index 1865b1bd5c..d3470359aa 100644
--- a/docs/intro/tutorial03.txt
+++ b/docs/intro/tutorial03.txt
@@ -474,10 +474,14 @@ Copy the file ``mysite/urls.py`` to ``mysite/polls/urls.py``. Then, change
``mysite/urls.py`` to remove the poll-specific URLs and insert an
:func:`~django.conf.urls.defaults.include`::
+ # This also imports the include function
+ from django.conf.urls.defaults import *
+
# ...
urlpatterns = patterns('',
(r'^polls/', include('mysite.polls.urls')),
# ...
+ )
:func:`~django.conf.urls.defaults.include`, simply, references another URLconf.
Note that the regular expression doesn't have a ``$`` (end-of-string match