摘要: 简单例子: 1 #自定义验证类 2 class Check_form1(forms.Form): 3 #user就是要验证的字段,这里对应前端name <input type='text' name=user> 4 user = fields.CharField() 5 pwd = fields.C 阅读全文
posted @ 2017-07-12 22:14 MKY-门可意 阅读(312) 评论(0) 推荐(0)