summaryrefslogtreecommitdiff
path: root/docs/tutorial04.txt
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2006-04-17 07:02:18 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2006-04-17 07:02:18 +0000
commit8f41483c2792b7288aa3530c015369ec5f9026ed (patch)
treeb2b2c9b84dc323f5e8f82dc849bcc796fc62b377 /docs/tutorial04.txt
parentcf55b5bbaf3e99c48cea68bd4a896a691c647ddc (diff)
magic-removal: Updated template names to include '.html' in tutorial.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2707 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/tutorial04.txt')
-rw-r--r--docs/tutorial04.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/tutorial04.txt b/docs/tutorial04.txt
index 5cf23a5f5d..12947bde02 100644
--- a/docs/tutorial04.txt
+++ b/docs/tutorial04.txt
@@ -56,7 +56,7 @@ So let's create a ``vote()`` function in ``mysite/polls/views.py``::
selected_choice = p.choice_set.filter(pk=request.POST['choice'])
except (KeyError, Choice.DoesNotExist):
# Redisplay the poll voting form.
- return render_to_response('polls/detail', {
+ return render_to_response('polls/detail.html', {
'poll': p,
'error_message': "You didn't select a choice.",
})
@@ -192,13 +192,13 @@ objects" and "display a detail page for a particular type of object."
``object_id`` for the generic views.
By default, the ``object_detail`` generic view uses a template called
-``<app name>/<module name>_detail``. In our case, it'll use the template
-``"polls/poll_detail"``. Thus, rename your ``polls/detail.html`` template to
+``<app name>/<module name>_detail.html``. In our case, it'll use the template
+``"polls/poll_detail.html"``. Thus, rename your ``polls/detail.html`` template to
``polls/poll_detail.html``, and change the ``render_to_response()`` line in
``vote()``.
Similarly, the ``object_list`` generic view uses a template called
-``<app name>/<module name>_list``. Thus, rename ``poll/index.html`` to
+``<app name>/<module name>_list.html``. Thus, rename ``poll/index.html`` to
``polls/poll_list.html``.
Because we have more than one entry in the URLconf that uses ``object_detail``