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 migr
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 possible
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 b
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.
Je
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 in
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
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 not exist.
"""
I can set "--verbosity=2", but i get no more i
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:
Firs
Russell Keith-Magee schrieb:
> Help me help you. In order to solve your problem, I need to know
> everything you are doing - not just bits of the problem.
Yes you are right, sorry ;)
Here some information: I'm rewrite PyLucid CMS: http://www.pylucid.org
The emphasis is thereby: Using PyLucid in
On 3/13/07, Jens Diemer <[EMAIL PROTECTED]> wrote:
>
> 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 t
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 not
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 err
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 y
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
unicode()?
14 matches
Mail list logo