Ticket #13623: 13623.2.diff

File 13623.2.diff, 685 bytes (added by Tim Graham, 14 years ago)
  • intro/tutorial03.txt

     
    474474``mysite/urls.py`` to remove the poll-specific URLs and insert an
    475475:func:`~django.conf.urls.defaults.include`::
    476476
     477    # This also imports the include function
     478    from django.conf.urls.defaults import *
     479
    477480    # ...
    478481    urlpatterns = patterns('',
    479482        (r'^polls/', include('mysite.polls.urls')),
    480483        # ...
     484    )
    481485
    482486:func:`~django.conf.urls.defaults.include`, simply, references another URLconf.
    483487Note that the regular expression doesn't have a ``$`` (end-of-string match
Back to Top