I\'ve been doing some custom forms with django but I don\'t get how to access attributes that a specific form field has attached via the forms.py.
def putErrorIn
It looks like you just want to display form errors for each field. After the form is cleaned or validated in the view, the fields should contain the error messages. So that you can display them in the template like so:
If however you really want to display the form field attributes then you can try something like:
{{ form.field_1.field.widget.attrs.maxlength }}