title: Django Forms to values of html <input> field
body: <p>I am trying to access the values of a Bootstrap btn-group from Django and from the documentation I have found, it seems that you should use Forms in Django for such tasks. </p>
  
  <p>This is what the html looks like, right now:</p>
  
  <pre><code>        &lt;div class="col-md-6"&gt;
          {% for metric in metrics %}
              &lt;input name="{{ metric.name }}" type="hidden" value="0"/&gt;
          {% endfor %}
              &lt;div class="btn-group" data-toggle="buttons"&gt;
              {% for metric in metrics %}
                  &lt;button type="button" class="btn btn-default" data-checkbox-name="{{ metric.name }}"&gt;{{ metric.name }}&lt;/button&gt;
              {% endfor %}
             &lt;/div&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>How can I use forms to get the values of the input fields?</p>