Forms are IMO, most misunderstood, and underdocumentated feature of Django. A from is not just a representation of a HTML.
A form is,
0. a representation of a HTML form.
1. Knows how to validate and sanitize that data.
2. Know what to do with the data. In my apps, a lot of logic
is in forms, (which people generally put in views.)
Its written by me, but I think is explains some interesting ways to use forms which people miss and do the hard way.
A form is,
0. a representation of a HTML form. 1. Knows how to validate and sanitize that data. 2. Know what to do with the data. In my apps, a lot of logic is in forms, (which people generally put in views.)
Its written by me, but I think is explains some interesting ways to use forms which people miss and do the hard way.
http://uswaretech.com/blog/2010/01/doing-things-with-django-...