📜  django 中的表单渲染选项 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:53.437000             🧑  作者: Mango

代码示例1
{% comment %}
Don’t forget that a form’s output does not include the surrounding 
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 tags {{ form.as_p }} will render them wrapped in

tags {{ form.as_ul }} will render them wrapped in

  • tags