django forms

Form.as_p() :as_p() renders the form as a series of <p> tags, with each <p> containing one field:
                  把form中的每项内容放置在<p></p>标签中
Form.as_ul():renders the form as a series of <li> tags, with each <li> containing one field. It does not include the <ul> or</ul>, so that you can specify any                            HTML attributes on the <ul> for flexibility:
                   把form的每项内容放置在<li></li>标签中
Form.as_table():Finally, as_table() outputs the form as an HTML <table>. This is exactly the same as print. In fact, when you printa form object, it calls                                     its as_table() method behind the scenes:
                        按照table来输出,默认就是按照table方式输出
原文地址:https://www.cnblogs.com/lifeisshort/p/4738920.html