1from django.shortcuts import get_object_or_404, render
2from django.http import HttpResponseRedirect, HttpResponse
3from django.core.urlresolvers import reverse
4from polls.models import Choice, Question
5
6def index(request):
7   latest_question_list = Question.objects.all().order_by('-pub_date')[:5]
8    context = {'latest_question_list': latest_question_list}
9   return render(request, 'polls/index.html', context)
10
11def detail(request, question_id):
12   question = get_object_or_404(Question, pk=question_id)
13    return render(request, 'polls/detail/html', {'question': question}
14
15#) Create your views here.


File "/home/craker/ch3/polls/views.py", line 16
   
                              ^
SyntaxError: invalid syntax