2006/9/12, limodou <[EMAIL PROTECTED]>: > > On 9/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > I've added a small tutorial: > > http://code.djangoproject.com/wiki/InitialSQLDataDiangoORMWay > > > > It describes how to use Django ORM to add initial SQL data to freshly > > installed apps without files with RAW SQL > > > I think the steps is somewhat complex. > > 1) Why not use manage.py shell to run the script, though you should > type more keys, but you don't need to setup the environment.(That you > I suggested that manage.py should provide a *run* option, so that you > can run your scripts without setup environment again. But people seem > arenot interesting in it :( )
What I like from the "standard way" is that you do not have to worry about if your data is going to be initialized or not, it's an authomathic process. I agree with you that the whole process is a bit tricky, but once you know it it's usually a matter of cut&paste from previous projects. Best regards, -- Antoni Aloy López Binissalem - Mallorca http://www.trespams.com Soci de Bulma - http://www.bulma.cat --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---