Re: Playing with fixtures and django serializers -> Errors...

2007-04-10 Thread Russell Keith-Magee
On 4/11/07, akaihola <[EMAIL PROTECTED]> wrote: > > I wonder if it would be possible to use dumpdata and loaddata for > migration instead. Broadly speaking, it sounds viable. My only reservation would be that for large databases, dumping the entire contents to a text file isn't really a good

Re: Playing with fixtures and django serializers -> Errors...

2007-04-10 Thread akaihola
Unaware of the new manage.py dumpdata and loaddata commands, I've written a tool (dbpickle.py) for dumping and loading Django databases. I've used it both for moving data from one database engine to another and for migrating schema changes to production databases. I wonder if it would be

Re: Playing with fixtures and django serializers -> Errors...

2007-03-28 Thread Russell Keith-Magee
On 3/28/07, jj <[EMAIL PROTECTED]> wrote: > Couple of suggestions: > - django's XML parser should really allow spaces and newlines It does accept whitespace, in certain places. You should also remember that depending on the schema, whitespace can be significant in XML documents. > - it should

Re: Playing with fixtures and django serializers -> Errors...

2007-03-28 Thread Jens Diemer
jj schrieb: > I've run into a similar problem (error: "columns app_label, model are > not unique"). > > I've found a work-around: > A easier way is to use db_dump.py ;) Look at: http://groups.google.com/group/django-users/browse_thread/thread/342efea6e3fc693d/a6807b7770b6b165 -- Mfg.

Re: Playing with fixtures and django serializers -> Errors...

2007-03-28 Thread jj
I've run into a similar problem (error: "columns app_label, model are not unique"). I've found a work-around: - delete the database - recreate the db from your model (using syncdb) - edit the XML (from dumpdata), removing all but your data (i.e. keep instances only, since your model is already

Re: Playing with fixtures and django serializers -> Errors...

2007-03-16 Thread Russell Keith-Magee
On 3/16/07, Jens Diemer <[EMAIL PROTECTED]> wrote: > > Generally: I have possibly wrong data in the data base. But i think > django does not help, to find these wrong data. > I made "django-admin dumpdata" and i got this error: > """ > Unable to serialize database: ContentType matching query does

Re: Playing with fixtures and django serializers -> Errors...

2007-03-14 Thread Russell Keith-Magee
On 3/14/07, Jens Diemer <[EMAIL PROTECTED]> wrote: > > Here some information: I'm rewrite PyLucid CMS: http://www.pylucid.org > The emphasis is thereby: Using PyLucid in a shared Webhosting > environment. So I implement a complete Web-Based installation. > > I write a "init DB data" routine:

Re: Playing with fixtures and django serializers -> Errors...

2007-03-13 Thread Jens Diemer
Jens Diemer schrieb: > I can't trying this. Because now i have a error before the serializers > starts working: """ContentType matching query does not exist.""" On a other platform it works! I don't known why... But if i import the dump i got some errors: Error: columns app_label, model are

Re: Playing with fixtures and django serializers -> Errors...

2007-03-13 Thread Jens Diemer
Russell Keith-Magee schrieb: > I've just finished writing a new set of tests for the serializers, > which included fixing a number of bugs. These fixes have been checked > in as of [4719]. Can you retry your tests and see if you still have > problems? I can't trying this. Because now i have a

Re: Playing with fixtures and django serializers -> Errors...

2007-03-12 Thread Russell Keith-Magee
On 3/13/07, Jens Diemer <[EMAIL PROTECTED]> wrote: > > > I'm playing with django.core.serializers... so far with few success :( Hi Jens, I've just finished writing a new set of tests for the serializers, which included fixing a number of bugs. These fixes have been checked in as of [4719]. Can

Playing with fixtures and django serializers -> Errors...

2007-03-12 Thread Jens Diemer
I'm playing with django.core.serializers... so far with few success :( With JSON i get the Error: "ContentType matching query does not exist." If i use the "python" format, i get from serializers.serialize() a list. How should I to store these list in a file? With pickle, repr() or