form rendering options in django

Solutions on MaxInterview for form rendering options in django by the best coders in the world

showing results for - "form rendering options in django"
Vianney
01 Jun 2016
1{% comment %}
2Don’t forget that a form’s output does not include the surrounding <form> tags, or the form’s submit control.
3You will have to provide these yourself.
4{% endcomment %}
5
6{{ form.as_table }} will render them as table cells wrapped in <tr> tags
7{{ form.as_p }} will render them wrapped in <p> tags
8{{ form.as_ul }} will render them wrapped in <li> tags