django material forms code example
Example 1: django forms
<div class="fieldWrapper">
{{ form.subject.errors }}
{{ form.subject.label_tag }}
{{ form.subject }}
</div>
Example 2: django form formatting
class MyForm(forms.Form):
field1 = forms.CharField(widget=forms.TextInput(attrs={'class' : 'myCSSclass'}))
field2 = forms.CharField(widget=forms.TextInput(attrs={'class' : 'myCSSclassX myCSSclass2'}))