summaryrefslogtreecommitdiff
path: root/docs/tutorial04.txt
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-07-12 04:44:45 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-07-12 04:44:45 +0000
commit8c4cc3235239d4d9d39a6294443a9cce0a7a7a81 (patch)
tree27b75c828f1ce6d80091d9978fae67aec93518fb /docs/tutorial04.txt
parent0c5d001531f81a8a6ea25d07eccf06f5a8087e2a (diff)
Edited changes to docs/tutorial04.txt from [5649]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5651 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/tutorial04.txt')
-rw-r--r--docs/tutorial04.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/tutorial04.txt b/docs/tutorial04.txt
index a25b5a7ba5..cfd9a45a4b 100644
--- a/docs/tutorial04.txt
+++ b/docs/tutorial04.txt
@@ -210,7 +210,7 @@ objects" and "display a detail page for a particular type of object."
``object_id`` for the generic views.
* We've added a name, ``poll_results``, to the results view so that we have
- a way to refer to its url later on (see `naming URL patterns`_ for more on
+ a way to refer to its URL later on (see `naming URL patterns`_ for more on
named patterns).
.. _naming URL patterns: http://www.djangoproject.com/documentation/url_dispatch/#naming-url-patterns
@@ -261,8 +261,8 @@ the new templates and context variables. Change the template call from
``polls/detail.html`` to ``polls/poll_detail.html``, and pass ``object`` in the
context instead of ``poll``.
-The last thing to do is fix the url handling to account for the use of generic
-views. In the vote view above we used the ``reverse()`` function to avoid
+The last thing to do is fix the URL handling to account for the use of generic
+views. In the vote view above, we used the ``reverse()`` function to avoid
hard-coding our URLs. Now that we've switched to a generic view, we'll need to
change the ``reverse()`` call to point back to our new generic view. We can't
simply use the view function anymore -- generic views can be (and are) used