title: What is form.visible_fields in Django and how do I index into it?
body: <p>Sometimes I have the need to render a particular Django form field in a particular way. I would like to be able to access this field and only this field in order to customize its rendering in my template.</p>
  
  <p>I know, for example, that I can do something like this:</p>
  
  <pre><code>&lt;!--Access the form field at index 2--&gt;
  {% for field in form.visible_fields %}
      {% if forloop.counter == 2 %}
          &lt;!--Render my form field the way that I want to--&gt;
      {% endif %}
  {% endfor %}
  </code></pre>
  
  <p>Intuitively, I would expect to be able to do something like <code>{{ form.visible_fields[2] }}</code> or perhaps <code>{{ form.visible_fields['field_name'] }}</code>.</p>
  
  <p>Unfortunately, my various attempts at the above have all failed and so I'm left wondering if this is possible. Any advice?</p>