{% load widget_tweaks %}

<form action="{{ url }}" method="post" class="form-horizontal" role="form">
  {% csrf_token %}
  {{ form.non_field_errors }}

  {# Include the hidden fields #}
  {% for hidden in form.hidden_fields %}
  {{ hidden }}
  {% endfor %}

  {# Include the visible fields #}
  {% for field in form.visible_fields %}
  <div class="form-group">
    <label for="{{ field.auto_id }}" class="col-sm-2 control-label">{{ field.label }}</label>
    <div class="col-sm-5">
      {{ field|add_class:'form-control' }}
    </div>
    <div class="col-sm-5">
      {{ form.name.errors }}
    </div>
  </div>
  {% endfor %}

  <div class="form-group">
    <div class="col-sm-5 col-sm-offset-2">
      <input type="submit" value="Submit" class="btn btn-primary" />
    </div>
  </div>
</form>

{% load widget_tweaks %}

<form action="{{ url }}" method="post" class="form-horizontal" role="form">
  {% csrf_token %}
  {{ form.non_field_errors }}

  {# Include the hidden fields #}
  {% for hidden in form.hidden_fields %}
  {{ hidden }}
  {% endfor %}

  {# Include the visible fields #}
  {% for field in form.visible_fields %}
  <div class="form-group">
    <label for="{{ field.auto_id }}" class="col-sm-2 control-label">{{ field.label }}</label>
    <div class="col-sm-5">
      {{ field|add_class:'form-control' }}
    </div>
    <div class="col-sm-5">
      {{ field.errors }}
    </div>
  </div>
  {% endfor %}

  <div class="form-group">
    <div class="col-sm-5 col-sm-offset-2">
      <input type="submit" value="Submit" class="btn btn-primary" />
    </div>
  </div>
</form>

Print contact form errors correctly
Print contact form errors correctly
