-
Notifications
You must be signed in to change notification settings - Fork 0
Django
gesellc edited this page Aug 25, 2016
·
1 revision
Forms have several superpowers in Django (->)
-
They can process user input and validate it for errors.
-
They can be used in templates to render HTML input elements, and error messages too.
-
And, as we’ll see later, some of them can even save data to the database for you.
You don’t have to use all three form superpowers in every form. You may prefer to roll your own HTML, or do your own saving. But they are an excellent place to keep validation logic.