in sqlite3 (the sqlite3 shell), you can use .import to import data from 
a text file.  It works great.  You may need to change the separator. 
For a one time load, this is probably the easiest method.

Dhruv Adhia wrote:
> Hey,
> 
> I would prefer second method as I am using sqlite3.
> 
> Is this what you mean?
> django-admin.py loaddata mydata.json , If so I how do I populate json file
> such large amounts of data?
> 
> Thanks,
> 
> On Wed, Jun 24, 2009 at 10:48 AM, creecode <creec...@gmail.com> wrote:
> 
>> Hello Dhruv,
>>
>> Two ways you can do this, that I know.  Use your databases' built in
>> data import technique.  For example with MySql you can use LOAD DATA.
>> Alternately you could use manage.py shell to run python code to load
>> your data.
>>
>> Read about manage.py shell and dbshell here <
>> http://docs.djangoproject.com/en/dev/ref/django-admin/ >.
>>
>> Toodle-looooooo...........
>> creecode
>>
>> On Jun 24, 10:23 am, Dhruv Adhia <druf...@gmail.com> wrote:
>>
>>> I have news field in django admin and I would like to enter 2000 news
>>> items at once. May I know how to do it in shorter way?
>>>
> 
> 

-- 
Carl Zmola
czm...@woti.com


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to