Django Form Processing Deep Dive

A session at PyCon US 2012

Saturday 10th March, 2012

11:05am to 11:45am (PST)

Django Form processing often takes a back seat to flashier, more visible parts of the framework. But Django forms, fully leveraged, can help developers be more productive and write more cohesive code. This talk will dive deep into the stock Django forms package, as well as discuss a strategy for abstracting validation for forms, and the use of unit and integration tests with forms.

Django Form processing often takes a back seat to flashier, more visible parts of the framework. But Django forms are an integral part of the framework that can help developers be more productive and write more cohesive, well tested code. This talk will dive deep into the stock Django forms package, providing an examples of:

  • custom validation and validation patterns
  • processing multiple forms at once (form sets)
  • persisting validated form data to models (model forms)

We'll also discuss ways to build on Django forms, including:

* writing unit and integration tests for forms, and how writing tests can help you understand code cohesion
& abstracting validation for forms to provide tiered validation (for example, one set of criteria to save, additional criteria to publish)
* approaches to working with multiple, heterogeneous forms simultaneously

About the speaker

This person is speaking at this event.
Nathan Yergler

I make things. bio from Twitter

Next session in E4

11:45am Testing and Django by Carl Meyer

Coverage of this session

Sign in to add slides, notes or videos to this session

Tell your friends!

When

Time 11:05am11:45am PST

Date Sat 10th March 2012

Short URL

lanyrd.com/spccr

Official session page

us.pycon.org/…e/presentation/420/

View the schedule

Share

Topics

See something wrong?

Report an issue with this session