Is there a way to generate a form based on a model object in turbogears? I came across that facility in Django - ModelForm where it generate the form based on the definition of the given model class. That is the exact feature I need in turbogears.
Asked
Active
Viewed 145 times
2 Answers
2
TurboGears2 provides automatic form generation using Sprox.
You can also automatically generate full CRUD interfaces using tgext.crud.
For a blog post with an overview and tutorial of Automatic Forms and CRUD generation you can give a look at this blog post. It guides you at creating a photo gallery in just a few lines of code.

amol
- 1,771
- 1
- 11
- 15
0
Here is a detailed article, which explains in detail how to build stuff, you can find the associated code here.

user993563
- 18,601
- 10
- 42
- 55