Code

Ticket #3282: 3282.diff

File 3282.diff, 710 bytes (added by Simon G. <dev@…>, 7 years ago)
Line 
1Index: tutorial03.txt
2===================================================================
3--- tutorial03.txt      (revision 4347)
4+++ tutorial03.txt      (working copy)
5@@ -260,8 +260,7 @@
6         latest_poll_list = Poll.objects.all().order_by('-pub_date')[:5]
7         return render_to_response('polls/index.html', {'latest_poll_list': latest_poll_list})
8 
9-Note that we no longer need to import ``loader``, ``Context`` or
10-``HttpResponse``.
11+Note that once we've done this in all these views, we no longer need to import ``loader``, ``Context`` and ``HttpResponse``.
12 
13 The ``render_to_response()`` function takes a template name as its first
14 argument and a dictionary as its optional second argument. It returns an