old_contents: # Create your views here.
  
new_contents: # Create your views here.
  
  from django.shortcuts import render
  
  from polls.models import Poll
  
  def index(request):
  	latest_poll_list = Poll.objects.all().order_by('-pub_date')[:5]
  	context = {'latest_poll_list': latest_poll_list}
  	return render(request, 'polls/index.html', context)
  
  def detail(request, poll_id):
  	return HttpResponse("You're looking at poll %s.", poll_id)
  
  def results(request, poll_id):
  	return HttpResponse("You're looking at the results of poll %s", poll_id)
  
  def vote(request, poll_id):
  	return HttpResponse("You're voting on poll %s", poll_id)
  
subject: Improve views with functions related to views