摘要:
用户注册的view写法,forms.ModelForm # 在view中引入数据库,并在页面中展示出来的写法 from django import forms from django.core.validators import RegexValidator # from django.core.e 阅读全文
摘要:
can only concatenate str (not "NoneType") to str # django中 忘记对密码属性写lable # 要注意这样写的话,每一个字段都要有lable属性,否则会报这个错误 # can only concatenate str (not "NoneType 阅读全文
摘要:
重写校验规则和插件格式,增加数据库中没有的字段 # 在view中引入数据库,并在页面中展示出来的写法 from django import forms from django.core.validators import RegexValidator # from django.core.excep 阅读全文