Skip to content

Commit

Permalink
Since we are using the url function, we are not just adding a "python…
Browse files Browse the repository at this point in the history
… tuple" anymore
  • Loading branch information
mpdaugherty committed Nov 2, 2012
1 parent 115b209 commit dc4aee4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapter03.rst
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ note, that's how Django knew to show you the "Welcome to Django" page in the
last chapter. If your URLconf is empty, Django assumes you just started a new
project and, hence, displays that message.)

To add a URL and view to the URLconf, just add a Python tuple mapping a URL
pattern to the view function. Here's how to hook in our ``hello`` view::
To add a URL and view to the URLconf, just add a mapping between a URL
pattern and the view function. Here's how to hook in our ``hello`` view::

from django.conf.urls.defaults import patterns, include, url
from mysite.views import hello
Expand Down

0 comments on commit dc4aee4

Please sign in to comment.