class TextForm(forms.Form):
body = forms.CharField(max_length=100)
<form method="post">
{{ form.body }}
</form>
<form method="post">
<input type="text" class="form-control" placeholder="type text">
</form>
class TextForm(forms.Form):
body = forms.CharField(max_length=100)
def __init__(self, *args, **kwargs):
super(TextForm, self).__init__(*args, **kwargs)
self.fields['body'].widget.attrs.update({'class': 'form-control'})