| 1 | = Scaffolding = |
| 2 | |
| 3 | Please refer to [wiki:ScaffoldScript] for previous information needed to understand this. |
| 4 | |
| 5 | This script tries to do a few more, than this one I'm referring to. You should be interested in creating a form for every model on your app, and configure your urls file to have a default url mapping. |
| 6 | |
| 7 | You have two scripts attached, the first one is called scaffold.py, it could be used alone to generate a default form for a model (-g form) or a default manipulator (-g manipulator). |
| 8 | |
| 9 | The other is the main one, it's called meta_scaffold.py (The name is not very original, and if someone finds a better name, please feel free to change it ;). This script creates a template for each of your models. For instance, if you have defined a Blog, with Articles and Comments, after executing this script you will have an article_form.html, comment_form.html and a _urls.py with generic create/update/delete links for both articles and comments. |
| 10 | |