摘要:
匹配特定数字:^[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? //匹配正... 阅读全文
摘要:
1、进入页面,提示Creating a ModelForm without either the 'fields' attribute or the 'exclude'时解决方法:打开forms.py文件,修改如下:class TestModelForm(forms.ModelForm): clas... 阅读全文