Advanced Django Forms Usage
- Audience level:
- Intermediate
- Category:
- Web Frameworks
Description
Django forms are really powerful but there are edge cases, especially with class based views), that can cause a bit of anguish. This talk will go over how to handle many common solutions not currently described in the core documentation. It will also cover useful third-party libraries.
Abstract
Django forms are really powerful but there are edge cases, especially with class based views), that can cause a bit of anguish. This talk will go over how to handle many common solutions not currently described in the core documentation. It will also cover useful third-party libraries.
Material covered:
- Django forms in functional views [5 min]
- Economize your code with the request.POST practice
- Understanding the ramifications of the request.POST practice
- Django forms in class based views [5 min]
- UpdateView without a slug
- Two or more forms in a single view
- Modifying forms on the fly [5 min]
- Adding fields
- Changing widgets
- Using forms to provide schema for schemaless datastores [5 min]
- Coverage on two 3rd party form libraries you should consider using [5 min]
- django-crispy-forms
- django-floppy-forms
- Third party libraries that get twitter bootstrap into your forms [2 min]
- Adding date widgets the easy way [3 min]