Ticket #3282: 3282.diff

File 3282.diff, 710 bytes (added by Simon G. <dev@…>, 18 years ago)
  • tutorial03.txt

     
    260260        latest_poll_list = Poll.objects.all().order_by('-pub_date')[:5]
    261261        return render_to_response('polls/index.html', {'latest_poll_list': latest_poll_list})
    262262
    263 Note that we no longer need to import ``loader``, ``Context`` or
    264 ``HttpResponse``.
     263Note that once we've done this in all these views, we no longer need to import ``loader``, ``Context`` and ``HttpResponse``.
    265264
    266265The ``render_to_response()`` function takes a template name as its first
    267266argument and a dictionary as its optional second argument. It returns an
Back to Top