ross.lazarusatgmail.com wrote: > related to my work, but I'm interested to see if there are people > willing to work on it as a django utility. All suggestions welcomed. > Quite interesting for me. Solicited suggestion (or random thougth) follows.
I have something similar in my some-day-perhaps projects queue. I thought rather to use a 2 steps approach. First step is a django application that generates django applications (it's better than a script to allow anybody to install and test it, and you have a GUI for free). Second step is part of the generated application: run a shell script that create the environment, sync the database, load test data... It will work like this: * The app will allow to upload one or more text files (CSV mainly) * File names inspire model names. Field names came from fist line header. * Within a simple wizard UI you can choose the relationship between models (just a bunch of select boxes with model and field names, KISS philosophy) * Choose app name, and press "generate" * You get a tar.gz with python code, ready to un-gzip-tar anywhere, run a shell script that setup the environment, create database, syncdb and load test data * Test data will be loaded with python code like MyClassOne(field1="aaa", field2="bbb", field3=MyClassTwo(field1="ccc")).save() * The generated app run like any other, python manage.py runserver... The app will store uploaded files with some other information (custom templates, media files...) just to allow later modifications and app regeneration. I've take a glance at your script, it seems your approach is more auto-contained but the target is the same, i.e. to generate easy apps fast, isn'it? Difficult to explain in a foreign language. Next time I'll try to express myself in python. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---

