2013年6月5日

wtform 页面错误信息显示

摘要: Displaying ErrorsNow that we have a template for our form, let’s add error messages:<form method="POST" action="/login"> <div>{{ form.username.label }}: {{ form.username(class="css_class") }}</div> {% if form.username.errors %} <ul class="error 阅读全文

posted @ 2013-06-05 16:08 百年孤寂dwn 阅读(321) 评论(0) 推荐(0) 编辑

导航