Stan
unread,Sep 21, 2012, 10:06:31 AM9/21/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django-d...@googlegroups.com
Hi,
Maybe I missed something but in upgrading a project from Django 1.3.x to 1.4.1 I have encounter the following error when running my tests :
Problem installing fixture '/Users/stan/Dropbox/Projets/Aden/Publish-dj1.4/fab4/../fab4/parametrage/fixtures/tests/auth.json': Traceback (most recent call last):
File "/Users/stan/src/venv-dj-1.4/lib/python2.6/site-packages/django/core/management/commands/loaddata.py", line 190, in handle
for obj in objects:
File "/Users/stan/src/venv-dj-1.4/lib/python2.6/site-packages/django/core/serializers/json.py", line 49, in Deserializer
raise DeserializationError(e)
DeserializationError: ContentType matching query does not exist.
It appears that the contenttype table created in the test database (syncdb too I presume) does not contains anymore the following row :
+----+----------------------------------------+--------------+-------------------------------+
| id | name | app_label | model |
+----+----------------------------------------+--------------+-------------------------------+
| 4 | message | auth | message |
(Running the tests in django 1.3 is just fine)
Because debugging fixtures is a real pain (It always end with pdb :-), maybe a note in Changelog or something could save time to a bunch of people ?
Cheers !
Stanislas.