November 2015
Beginner to intermediate
840 pages
26h 30m
English
Django forms and models are often confused by beginners. Whereas a model is a representation of data in the database and is used to communicate with the database with the object-relational mapper (ORM), a form is a temporary container for data, meant to process the data it is given before passing it along to another part of Django. Django refers to the act of giving data to the form as the act of binding data to the form. Typically the form passes the data along to the model, but the data could be returned to the user or sent in an email. Practically speaking, the developer could do whatever he or she wishes with the data provided to the form by the user.
This flexibility can make forms a little bit difficult ...
Read now
Unlock full access