Guided Notes
Forms
Validating and processing user input.
Why Django forms?
Slide 1 / 5User input can't be trusted: fields may be missing, the wrong type, or malicious. Django forms: β’ render HTML inputs, β’ validate and clean submitted data, β’ show clear error messages, β’ protect against cross-site request forgery with {% csrf_token %}.
A ModelForm builds a form directly from a model's fields β the quickest way to create and edit records.