21. 폼(Forms) polls/views.py from django.http import HttpResponse, HttpResponseRedirect from django.urls import reverse ... def vote(request, question_id): question = get_object_or_404(Question, pk=question_id) try: selected_choice = question.choice_set.get(pk=request.POST['choice']) except (KeyError, Choice.DoesNotExist): return render(request, 'polls/detail.html', {'question': question, 'error_..