February 2008
Beginner
528 pages
9h 53m
English
POST requests against the modelIn Hour 10, “Adding Forms to Views,” you learned how to create Form objects and render them as HTML. In this hour, we will extend that concept and show you how to use rendered forms to update the database.
The following sections take you through the process of displaying the Form during a GET request, retrieving the updated data from the form in a POST request, validating the data, and updating the database.
GET and POST RequestsThe first step in using Django Forms to update the database ...
Read now
Unlock full access