Werbung
Apple iPhone 3G S vertragsfrei, ohne Simlock, kostenlose Lieferung, Turicom Online Shop

Back to the main page

Archive for the 'Django' Category

Django newforms: How to create dynamic forms

Thursday, February 15th, 2007

Django is a great framework for building web applications. Recently they started to create the newforms library that makes it easy to handle forms.

But the newforms library works only for static forms. Forms that have a fixed number of fields. What I wanted to do, is create a page that allows you to edit multiple instances of a model at once. It should be similar to edit_inline, but there should be a JavaScript link that allows you to add another instance of the object.

That’s why I have written classes that make it possible to handle this type of forms using Django. No AJAX is utilized to make this work.

(more…)

eggdrop.ch blog is powered by WordPress
Entries (RSS) and Comments (RSS).