摘要: 匹配特定数字:^[1-9]\d*//匹配正整数?[1?9]\d? //匹配负整数^-?[1-9]\d*//匹配整数[1?9]\d?|0 //匹配非负整数(正整数 + 0)^-[1-9]\d*|0//匹配非正整数(负整数+0)[1?9]\d?\.\d?|0\.\d?[1?9]\d? //匹配正... 阅读全文
posted @ 2015-09-18 18:26 狂师 阅读(2985) 评论(0) 推荐(0) 编辑
摘要: 1、进入页面,提示Creating a ModelForm without either the 'fields' attribute or the 'exclude'时解决方法:打开forms.py文件,修改如下:class TestModelForm(forms.ModelForm): clas... 阅读全文
posted @ 2015-09-18 13:05 狂师 阅读(769) 评论(0) 推荐(0) 编辑