{{ 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)
以上就是How do I add an extra attribute in my input for Django forms?的详细内容,更多请关注web前端其它相关文章!