The problem I have encountered using dumpdata and reloading is with boolean values. The boolean values need to have either a True or False value. When it has a value of null the loaddata usually complains. That has been my experience.
On Sat, Apr 10, 2010 at 4:18 PM, craig <[email protected]> wrote: > > I've dumped my database to a json fixture via manage.py dumpdata, and > now I'm trying to reload it into a different database. I'm getting the > following error when running loaddata: > > Problem installing fixture '/home/sawadeetea/sawadee.json': Traceback > (most recent call last): > File "/home/sawadeetea/webapps/django/lib/python2.5/django/core/ > management/commands/loaddata.py", line 150, in handle > for obj in objects: > File "/home/sawadeetea/webapps/django/lib/python2.5/django/core/ > serializers/json.py", line 41, in Deserializer > for obj in PythonDeserializer(simplejson.load(stream)): > File "/home/sawadeetea/webapps/django/lib/python2.5/django/core/ > serializers/python.py", line 103, in Deserializer > yield base.DeserializedObject(Model(**data), m2m_data) > File "/home/sawadeetea/webapps/django/lib/python2.5/django/db/models/ > base.py", line 303, in __init__ > val = kwargs.pop(field.attname, field.get_default()) > File "/home/sawadeetea/webapps/django/lib/python2.5/django/db/models/ > fields/__init__.py", line 244, in get_default > return self.default() > File "/home/sawadeetea/lib/python2.5/Satchmo-0.9_1-py2.5.egg/product/ > models.py", line 855, in <lambda> > taxable = models.BooleanField(_("Taxable"), default=lambda: > config_value('TAX', 'PRODUCTS_TAXABLE_BY_DEFAULT')) > File "/home/sawadeetea/lib/python2.5/django_livesettings-1.4_3- > py2.5.egg/livesettings/functions.py", line 204, in config_value > return config_get(group, key).value > File "/home/sawadeetea/lib/python2.5/django_livesettings-1.4_3- > py2.5.egg/livesettings/functions.py", line 149, in config_get > return ConfigurationSettings().get_config(group, key) > File "/home/sawadeetea/lib/python2.5/django_livesettings-1.4_3- > py2.5.egg/livesettings/functions.py", line 66, in get_config > raise SettingNotSet('%s config group does not exist' % group) > SettingNotSet > > > Any ideas? I've confirmed that the config setting for > PRODUCTS_TAXABLE_BY_DEFAULT exists in the fixture. > > Thanks > > > > > -- > You received this message because you are subscribed to the Google Groups > "Satchmo users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<satchmo-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/satchmo-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.
