Django框架學習筆記(25.Form組件驗證)

簡單的用戶註冊: urls.py加入: url(r'^fm/$', views.fm), views.py: from django import forms class FM(forms.Form): user = forms.CharField(error_messages={'required': '用戶名不能爲空'}) pwd = forms.CharField(
相關文章
相關標籤/搜索