On Fri, May 22, 2009 at 7:43 PM, George Song <geo...@damacy.net> wrote:
> > On 5/22/2009 5:07 PM, Herta wrote: > > I want to load data to database (sqlite3 ) from file. I have already > > connect django and my database, and build the tables but how can i > > load data from file? > > What kind of files are these? If they are existing legacy data files, > you'll have to write some sort of de-serializer to translate them to fit > your model(s). > > If the file happens to be one of the serialization formats that Django > already knows how to deal with, you might be able to use Django's > serialization somehow. > > But some more specifics on your data format will allow us to help you more. > > -- > George > > > > If it's an actual db dumb (aka SQL) you can just give it strait to the db. Otherwise you'll probably need to write a script to parse it and create objects and save them. Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---