Inspired by the discussions in this thread I've created a reusable app
that mainly consists of a couple of management commands, like
startbigapp ( working name ) which is a crude hack of the startapp
code in django. It creates module for models and views instead of the
standard views.py and models.py. Another command is addmodel
<app_name> <model1> <model2> which will support the module layout
created by startbigapp, but will also create scaffolding using generic
views and basic templates for new/update/list/delete of the specified
models ( the models doesn`t have fields, that will have to be added
manually ). It saves some time and reducing repetetive typing. I was
thinking of making a command that would take an existing app and
generate a new version of the app splitting models ( and perhaps views
? ) into modules. The app will be a collection of helper methods for
code organizing and generation of boilerplate code. Any thoughts or
ideas?

I`ll upload it to the cheeseshop as soon as I can get time to
debug/test a bit more. The code isn`t pretty at the moment, but it
seems to get the job done.

-- 
Mvh/Best regards,
Thomas Weholt
http://www.weholt.org

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to