Author: russellm
Date: 2009-06-18 08:36:40 -0500 (Thu, 18 Jun 2009)
New Revision: 11052

Modified:
   django/trunk/docs/intro/tutorial03.txt
Log:
Fixed #10978 -- Clarified that the include statement is part of the urlpattern 
definition. Thanks to swatermasysk for the suggestion.

Modified: django/trunk/docs/intro/tutorial03.txt
===================================================================
--- django/trunk/docs/intro/tutorial03.txt      2009-06-18 13:36:11 UTC (rev 
11051)
+++ django/trunk/docs/intro/tutorial03.txt      2009-06-18 13:36:40 UTC (rev 
11052)
@@ -467,7 +467,10 @@
 ``mysite/urls.py`` to remove the poll-specific URLs and insert an
 :func:`~django.conf.urls.defaults.include`::
 
-    (r'^polls/', include('mysite.polls.urls')),
+    ...
+    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


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to