title: Get objects one by one in django
body: <p>I have filled 10 questions in one table of database. Whenever i print one question , all 10 questions are printed at one time.</p>
  
  <p>But I want , one question to be printed then that question to be answered by the user, then the next question should appear.
  so the next question should appear once the previous question is answered.</p>
  
  <p>models.py  </p>
  
  <pre><code>class Questions(models.Model):
      id = models.PositiveIntegerField(primary_key=True)
      question = models.CharField(max_length=500)
  
  def __str__(self):
      return self.question
  </code></pre>
  
  <p>view.py</p>
  
  <pre><code>   def qpage(request):   
         questions = Questions.objects.all()
         return render(request, 'data/quit.html', {'questions': questions})
  </code></pre>
  
  <p>quit.html</p>
  
  <pre><code>      &lt;form class="form"  method="post" action=""&gt;
          {% csrf_token %}
          {% for q in questions %}
  
              &lt;h3&gt; {{ q.id }}.{{ q.question }}&lt;/h3&gt;
              &lt;input type ="text" name ="ans"  id = "q1a"&gt;
  
          {% endfor %}
          &lt;button value ="Next"&gt;Next&lt;/button&gt;
          &lt;/form&gt;
  </code></pre>