I'm trying to recreate my database and reload the data in it, using the following steps:
On my app I dump data to a fixtures file with > ./manage.py dumpdata > test_fixture then drop and recreate the database then run > ./manage.py syncdb to recreate the database tables and > ./manage.py loaddata test_fixture to repopulate the database but the loaddata command fails with the folowing error: IntegrityError: duplicate key value violates unique constraint "django_content_type_app_label_key" The fixture loads correctly if I truncate the django_content_type table after running syncdb. But I don't want to do this every time I set up a test database. What am I doing wrong here? Is there someway to create the fixture so that it dosn't try to repopulate the django_content_type table? Thanks, Murray -- You received this message because you are subscribed to the Google Groups "Django 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/django-users?hl=en.

