diff --git a/docs/intro/tutorial03.txt b/docs/intro/tutorial03.txt index 1865b1bd5c4..d3470359aaf 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