Defining a forms.Form
Declare fields and their widgets.
Why Forms Exist
A Django form turns messy user input into clean Python data, handling rendering and validation in one tidy place. 📝
Subclass forms.Form
You declare a form by subclassing forms.Form. Each class attribute you add becomes a field on that form.
from django import forms
class ContactForm(forms.Form):
name = forms.CharField()