Hi All
Apologies if this has been asked before, but I cant find an answer. Is
there anyway to convert a pootle sqlite database to a mysql one.
I have tried using manage.py dumpdata --format=xml > data.xml
Changing localsettings.py to use mysql, and then running manage.py
loaddata data.xml
It runs for a while populates a lot of tables, then chokes
Problem installing fixture 'dump.xml': Traceback (most recent call last):
File
"/usr/local/lib/python2.6/dist-packages/Django-1.1.1-py2.6.egg/django/core/management/commands/loaddata.py",
line 153, in handle
obj.save()
File
"/usr/local/lib/python2.6/dist-packages/Django-1.1.1-py2.6.egg/django/core/serializers/base.py",
line 163, in save
models.Model.save_base(self.object, raw=True)
File
"/usr/local/lib/python2.6/dist-packages/Django-1.1.1-py2.6.egg/django/db/models/base.py",
line 432, in save_base
signals.pre_save.send(sender=origin, instance=self, raw=raw)
File
"/usr/local/lib/python2.6/dist-packages/Django-1.1.1-py2.6.egg/django/dispatch/dispatcher.py",
line 166, in send
response = receiver(signal=self, sender=sender, **named)
File "/home/chris/src/Pootle-2.0.2/local_apps/pootle_app/models/directory.py",
line 154, in set_directory_pootle_path
if instance.parent is not None:
File
"/usr/local/lib/python2.6/dist-packages/Django-1.1.1-py2.6.egg/django/db/models/fields/related.py",
line 257, in __get__
rel_obj = QuerySet(self.field.rel.to).get(**params)
File
"/usr/local/lib/python2.6/dist-packages/Django-1.1.1-py2.6.egg/django/db/models/query.py",
line 305, in get
% self.model._meta.object_name)
DoesNotExist: Directory matching query does not exist.
Any help would be much appreciated.
Chris
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle