© Daniel Rubio 2017

Daniel Rubio, Beginning Django, https://doi.org/10.1007/978-1-4842-2787-9_6

6. Django Forms

Daniel Rubio

(1)F. Bahia, Ensenada, Baja California, Mexico

Forms are the standard way that users input or edit data in web applications. At their lowest level, forms are made up of HTML tags with special meaning. While you can directly add HTML form tags to Django or Jinja templates, you really want to avoid this and use Django’s built-in form support to make form processing easier.

In this chapter you’ll learn how to structure Django forms and the workflow that forms undergo. You’ll also learn the various field types and widgets supported by Django forms, how to validate form data and manage its errors, as well as how to lay out forms ...

Get Beginning Django: Web Application Development and Deployment with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.