Skip to content

Commit

Permalink
Fixed #10978 -- Clarified that the include statement is part of the u…
Browse files Browse the repository at this point in the history
…rlpattern definition. Thanks to swatermasysk for the suggestion.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11052 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed Jun 18, 2009
1 parent 3894ba8 commit ee8cc09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/intro/tutorial03.txt
Expand Up @@ -467,7 +467,10 @@ 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`::

(r'^polls/', include('mysite.polls.urls')),
...
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
Expand Down

0 comments on commit ee8cc09

Please sign in to comment.