Forms in HTTP and HTML
We cover how GET and POST work, how forms are constructed from HTML, how we protect our applications against Cross-Site Scripting Forgery (CSRF), and how we handle browser refreshes after POST.
Slides
Videos
- Forms, GET, POST, and HTTP (8:19)
- Building HTML Forms (11:49)
- Forms and Cross Site Request Forgery (CSRF) (5:52)
- CSRF Support in Django (9:16)
- The POST Refresh Pattern (3:26)
- Implementing POST Redirect in Django (8:04)
References
- Django Template Tags and Filters
- Writing your first Django app, part 4 (Tutorial)
- Fixing Django 5.2 Errors on PythonAnywhere (Handout)
- Fixing Django 5.2 Errors on PythonAnywhere (19:39)
Discussions
- Forms in HTTP and HTML (Login Required)
Tools
- Quiz: HTML Forms (Login Required)
- Auto-grader: Django Tutorial part 4 (Login Required)
- Quiz: Django Tutorial 4 (Login Required)