Django forms handle the full lifecycle of user input: rendering HTML form fields, validating submitted data, and converting it to clean Python values. They abstract away the tedious, error-prone work of manual input handling and validation — a major productivity and security feature.
A basic form
django forms
(forms.Form):
name = forms.CharField(max_length=)
email = forms.EmailField()
age = forms.IntegerField(min_value=, required=)
message = forms.CharField(widget=forms.Textarea)
