{{ theform.address }}
{{ theform.phone }}
This is what I do in my templates.
However, what if I want to add placeholder="Username" to the input text field? (Custom attribute)
<input type="text" name="address" id="id_address" placeholder="username"/>
Add the
attrskeyword argument to your field constructor’swidget, and include write your attribute in there:If you want to see it in action, take a look at django-registration’s forms.py.