📜  Django 表单示例 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:02.881000             🧑  作者: Mango

代码示例3
from django import forms

# creating a form
class SampleForm(forms.Form):
    name = forms.CharField()
    description = forms.CharField()