Forms

对应<app_name>/forms.py

Forms

class CommentForm(forms.Form):
    name = forms.CharField(initial='Your name')  # 指定初始值