Ticket #10978: 10978_inline_url_docs.diff
File 10978_inline_url_docs.diff, 762 bytes (added by , 16 years ago) |
---|
-
docs/intro/tutorial03.txt
462 462 463 463 Copy the file ``mysite/urls.py`` to ``mysite/polls/urls.py``. Then, change 464 464 ``mysite/urls.py`` to remove the poll-specific URLs and insert an 465 :func:`~django.conf.urls.defaults.include` ::465 :func:`~django.conf.urls.defaults.include`, like so:: 466 466 467 (r'^polls/', include('mysite.polls.urls')), 467 urlpatterns = patterns('', 468 (r'^polls/', include('mysite.polls.urls')), 469 ) 468 470 469 471 :func:`~django.conf.urls.defaults.include`, simply, references another URLconf. 470 472 Note that the regular expression doesn't have a ``$`` (end-of-string match