I don’t know how you mean, but you can try this
{% for field in form %} {{ field }} {% if field.label == 'Location' %} <h1>Hi</h1> {% endif %} {% endfor %}
While you set the label in forms.py as
location = forms.CharField(widget=forms.TextInput( attrs={'class': 'yourclass', 'placeholder': 'Enter your location', }), label=u'Location', max_length=100, required=True)
source share