Thursday¶
Objectives¶
Be comfortable working with Django forms and form handling
Readings¶
Django Forms¶
To support creating and editing objects in Django, you’ll need to learn about Django Forms. Here are some readings to keep in mind as you progress:
- Start by learning how to work with forms in general
- Follow that up with reading about ModelForms and what they provide
- Make sure you understand form and field validation so you can ensure proper data is submitted
- Particularly complex forms, or forms which require javascript or special css, will need to utilize form assets
- You’ll want to keep a reference open for the Forms API
- Keep in mind that the custom form field you imagine may already have been created and check the Forms category on http://www.djangopackages.com
Review¶
Django CBVs (the library, photo, and album views)
Concepts¶
- The Hash Table
Demo¶
Using django-configurations to achieve 12-factor nirvana