title: How to change data in database by clicking a button in HTML with Django
body: <p>I have a mini project with Django.
  I have just a model with a counter <code>total</code> :</p>
  
  <pre><code>class Reponse(models.Model):
      total = models.IntegerField()
  </code></pre>
  
  <p>I have this view:</p>
  
  <pre><code>def questions(request):
      _reponse = get_object_or_404(Reponse, id= 1)
      return render(request, 'vautmieux/test.html', {'reponse': _reponse})
  </code></pre>
  
  <p>And my HTML <code>test</code> display the variable <code>total</code>:</p>
  
  <pre><code>&lt;p id="block1"&gt;
      {{reponse.total}}
  &lt;/p&gt;
  </code></pre>
  
  <p>My question is :</p>
  
  <p>I would like when I click on a button in the HTML, the variable <code>total</code> increases by 1.
  How can I do that ? With a form POST or GET ? May be there is a better method ?</p>
  
  <p>A button like this :</p>
  
  <pre><code>&lt;p id="block1"&gt;
      {{reponse.total}}
  &lt;/p&gt;
  &lt;button type="button"&gt;
      Click for increase total by 1
  &lt;/button&gt;
  </code></pre>