django表单form的CharField属性
username = forms.CharField(label='',max_length=128,widget=forms.TextInput({'placeholder':u'用户名..',}))
password = forms.CharField(label='',max_length=256, widget=forms.PasswordInput({'placeholder':u'密码..',}))
- 解释
- 验证流程
username = forms.CharField(label='',max_length=128,widget=forms.TextInput({'placeholder':u'用户名..',}))
password = forms.CharField(label='',max_length=256, widget=forms.PasswordInput({'placeholder':u'密码..',}))