I'm giving the following error in my Django 1.9 form
Notice that the label has the :>
at the end.
I DO NOT WANT THE GREATEST SIGN (>) AT THE END OF LABEL
Ex: Nome: >
Followmycodeforms.py
classFormContact(forms.Form):name=forms.CharField(label='Nome',widget=forms.TextInput(attrs={'class':'form-control'}))email=forms.EmailField(label='Email',widget=forms.TextInput(attrs={'class':'form-control'}))phone=forms.CharField(label='Telefone',max_length=13,widget=forms.TextInput(attrs={'class':'form-control'}))message=forms.CharField(label='Mensagem',widget=forms.Textarea(attrs={'class':'form-control'}),max_length=500)
Evenwithoutthewidgetyougeterror
HTMLofcontato.html
{%forfieldinform%}<divclass="form-group">
<label for={{ field.label_tag }}> {{ field_label_tag }} </label>
{{ field }}
</div>
{% endfor %}