Answers for "Form rendering options in django"

0

Form rendering options in django

{% comment %}
Don’t forget that a form’s output does not include the surrounding <form> tags, or the form’s submit control.
You will have to provide these yourself.
{% endcomment %}

{{ form.as_table }} will render them as table cells wrapped in <tr> tags
{{ form.as_p }} will render them wrapped in <p> tags
{{ form.as_ul }} will render them wrapped in <li> tags
Posted by: Guest on September-03-2021

Python Answers by Framework

Browse Popular Code Answers by Language