Ticket #10978: 10978_inline_url_docs.diff

File 10978_inline_url_docs.diff, 762 bytes (added by kfricovsky, 6 years ago)
  • docs/intro/tutorial03.txt

     
    462462
    463463Copy the file ``mysite/urls.py`` to ``mysite/polls/urls.py``. Then, change
    464464``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::
    466466
    467     (r'^polls/', include('mysite.polls.urls')),
     467    urlpatterns = patterns('',
     468        (r'^polls/', include('mysite.polls.urls')),
     469    )
    468470
    469471:func:`~django.conf.urls.defaults.include`, simply, references another URLconf.
    470472Note that the regular expression doesn't have a ``$`` (end-of-string match
Back to Top