Web Development with Django
by Ben Shaw, Saurabh Badhwar, Andrew Bird, Bharath Chandra K S, Chris Guest, Bidhan Mondal
6. Forms
Overview
This chapter introduces web forms, a method of sending information from the browser to the web server. It starts with an introduction to forms in general and discusses how data is encoded to be sent to the server. You will learn about the differences between sending form data in a GET HTTP request and sending it in a POST HTTP request, and how to choose which one to use. By the end of the chapter, you will know how Django's form library is used to build and validate forms automatically and how it cuts down the amount of manual HTML you need to write.
Introduction
So far, the views we have been building for Django have been one-way only. Our browser is retrieving data from the views we have written but it does not send ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access