📜  将数据从 html 表单存储到数据库 django - Html 代码示例

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

代码示例1
from django import forms
from .models import ContactForm

class FormContactForm(forms.ModelForm):
    class Meta:
        model= ContactForm
        fields= ["fullname", "email", "contact", "message"]