mirror of
https://github.com/django/django.git
synced 2025-07-25 06:04:21 +00:00
Fixed error in last commit. Thanks Simon Charette.
This commit is contained in:
parent
df4a74d709
commit
6ef199a08e
1 changed files with 1 additions and 1 deletions
|
@ -346,7 +346,7 @@ Now let's update our ``index`` view in ``polls/views.py`` to use the template::
|
|||
def index(request):
|
||||
latest_poll_list = Poll.objects.order_by('-pub_date')[:5]
|
||||
template = loader.get_template('polls/index.html')
|
||||
context = RequestContext({
|
||||
context = RequestContext(request, {
|
||||
'latest_poll_list': latest_poll_list,
|
||||
})
|
||||
return HttpResponse(template.render(context))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue