Browse files

Continuing to update example to match new version of

  • Loading branch information...
1 parent 81ec74a commit eb790a41d964720c94961b5d9f7e31bd903cb768 @mpdaugherty mpdaugherty committed Oct 25, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 chapter03.rst
@@ -125,9 +125,9 @@ lines. If we ignore the commented-out code, here's the essence of a URLconf::
Let's step through this code one line at a time:
-* The first line imports all objects from the ``django.conf.urls.defaults``
- module, which is Django's URLconf infrastructure. This includes a
- function called ``patterns``.
+* The first line imports three function from the ``django.conf.urls.defaults``
+ module, which is Django's URLconf infrastructure: ``patterns``, ``include``,
+ and ``urls``.
* The second line calls the function ``patterns`` and saves the result
into a variable called ``urlpatterns``. The ``patterns`` function gets
@@ -150,7 +150,7 @@ pattern to the view function. Here's how to hook in our ``hello`` view::
from mysite.views import hello
urlpatterns = patterns('',
- ('^hello/$', hello),
+ url(r'^hello/$', hello),
(Note that we've removed the commented-out code for brevity. You can choose

0 comments on commit eb790a4

Please sign in to comment.