Commit b176bd4f authored by Luke Plant's avatar Luke Plant
Browse files

[1.2.X] 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.

Backport of [13847] from trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13848 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 93e83546
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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