title: Django printing my queryset
body: <p>I've just started with Django and I am trying to print my queryset object. My template code is given below:</p>
  
  <pre><code>{% for record in qset  %}
          {{record.first}}, {{record.second}}
  {%endfor%}
  </code></pre>
  
  <p>Also, my views file contains:</p>
  
  <pre><code>from django.shortcuts import render
  from django.http import HttpResponse, HttpResponseRedirect
  from updatedb.models import Data
  from django.core.urlresolvers import reverse
  
  def index(request):
          return render(request, 'updatedb/data.html')
  
  def submit(request):
          first = request.POST["first"]
          second = request.POST["second"]
          d = Data()
          d.first = first
          d.second = second
          d.save()
  
          if request.POST.get("submit"):
                  qset = Data.objects.all()
                  print qset[2].first
                  print qset[2].second
                  return render(request, 'updatedb/results.html', {'queryset':qset}
  </code></pre>
  
  <p>On running the server and submitting my data I am getting a blank web page. Why is that so?</p>