Re: Proposal: Database Dumper based on Django ORM

2007-01-16 Thread [EMAIL PROTECTED]
http://simon.net.nz/articles/django-database-export-v1/ is nice :) I was refering to something more than ju a way to make dumps - a dumper which has an admin page where I could select what to dump and other options. --~--~-~--~~~---~--~~ You received this m

Re: Proposal: Database Dumper based on Django ORM

2007-01-15 Thread Russell Keith-Magee
On 1/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: My proposal is a database data dumper based on django ORM - It would not produce SQL but python code that would insert the data. Something like (example dump): You might want to check out the phase 3 patches associated with ticket #2333

Re: Proposal: Database Dumper based on Django ORM

2007-01-15 Thread [EMAIL PROTECTED]
I half-wrote something similar (1) to extract some data for an app. It's very preliminary - you'll need to hand-edit the ordering of relationships etc, but you can get a list of the various api save/create commands which will recreate the data. Hope it helps, Simon [1] http://simon.net.nz/artic

Re: Proposal: Database Dumper based on Django ORM

2007-01-14 Thread Honza Král
On 1/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: My proposal is a database data dumper based on django ORM - It would not produce SQL but python code that would insert the data. Something like (example dump): ### from os import environ environ['DJANGO_SETTINGS_MODULE'] =

Proposal: Database Dumper based on Django ORM

2007-01-14 Thread [EMAIL PROTECTED]
My proposal is a database data dumper based on django ORM - It would not produce SQL but python code that would insert the data. Something like (example dump): ### from os import environ environ['DJANGO_SETTINGS_MODULE'] = 'settings' from django.contrib.auth.models import User, G