with another dump file, I get this error: Problem installing fixture '/Users/imran/Sites/bdl/match/trunk/python/ bdl_site/match/fixtures/apps_fixture-24.09.09.json': Traceback (most recent call last): File "/Library/Python/2.5/site-packages/django/core/management/ commands/loaddata.py", line 116, in handle for obj in objects: File "/Library/Python/2.5/site-packages/django/core/serializers/ json.py", line 41, in Deserializer for obj in PythonDeserializer(simplejson.load(stream)): File "/Library/Python/2.5/site-packages/django/core/serializers/ python.py", line 94, in Deserializer data[field.name] = field.to_python(field_value) File "/Library/Python/2.5/site-packages/django/db/models/fields/ __init__.py", line 379, in to_python _("This value must be either True or False.")) ValidationError: This value must be either True or False.
how can i figure out which value is messed up? thanks On Sep 24, 12:25 pm, skunkwerk <skunkw...@gmail.com> wrote: > Hi, > I created a database dump using the 'dumpdata' command, and when I > but am getting this error when I add the line: > fixtures = ['test_fixture-24.09.09.json'] to my TestCase class: > > Problem installing fixture '//ites/bdl/match/trunk/python/bdl_site/ > match/fixtures/test_fixture-24.09.09.json': Traceback (most recent > call last): > File "/Library/Python/2.5/site-packages/django/core/management/ > commands/loaddata.py", line 119, in handle > obj.save() > File "/Library/Python/2.5/site-packages/django/core/serializers/ > base.py", line 163, in save > models.Model.save_base(self.object, raw=True) > File "/Library/Python/2.5/site-packages/django/db/models/base.py", > line 383, in save_base > result = manager._insert(values, return_id=update_pk) > File "/Library/Python/2.5/site-packages/django/db/models/ > manager.py", line 138, in _insert > return insert_query(self.model, values, **kwargs) > File "/Library/Python/2.5/site-packages/django/db/models/query.py", > line 894, in insert_query > return query.execute_sql(return_id) > File "/Library/Python/2.5/site-packages/django/db/models/sql/ > subqueries.py", line 309, in execute_sql > cursor = super(InsertQuery, self).execute_sql(None) > File "/Library/Python/2.5/site-packages/django/db/models/sql/ > query.py", line 1734, in execute_sql > cursor.execute(sql, params) > File "/Library/Python/2.5/site-packages/django/db/backends/mysql/ > base.py", line 83, in execute > return self.cursor.execute(query, args) > File "build/bdist.macosx-10.5-i386/egg/MySQLdb/cursors.py", line > 168, in execute > if not self._defer_warnings: self._warning_check() > File "build/bdist.macosx-10.5-i386/egg/MySQLdb/cursors.py", line 82, > in _warning_check > warn(w[-1], self.Warning, 3) > File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/warnings.py", line 62, in warn > globals) > File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/warnings.py", line 102, in warn_explicit > raise message > Warning: Data truncated for column 'title' at row 1 > > but when I call loaddata directly, it works just fine: > django-admin.py loaddata test_fixture-24.09.09.json > Installing json fixture 'test_fixture-24.09.09' from '/Users/imran/ > Sites/bdl/match/trunk/python/bdl_site/match/fixtures'. > Installed 5365 object(s) from 1 fixture(s) > > how can i fix the loading of the test suite fixture? > > thanks, > imran --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---