Hacker News new | ask | show | jobs
by ptgloden 4969 days ago
Class based views have really helped me get rid of ugly, complex, and deeply nested form handling views. I recommend looking at the source for the form wizard views mentioned in the article as well as all the views and mixins in django.views.generic.edit. As the article mentions, their features aren't always completely documented, but the code is very easy to follow.
1 comments

Yeah, I'm (the author) a giant fan of CBVs in Django. Sadly, the form wizard views, although class-based and fairly sprawling, don't seem to be very friendly to experimentation. It seems to be a pretty locked-in workflow that's horribly undocumented. Hence the post.