[Solved]-Django Test Complaining about Fixture



  1. You are just interested in recovering the information from a json you generated before knowing this issue
  2. You don’t care about the data of administration logs
  3. You (or someone else) generated the json excluding auth.permission and contenttypes, using a command like: python manage.py dumpdata --exclude auth.permission --exclude contenttypes > db.json

You may recover the information trapped in the json with a text editor, opening the file and deleting the elements associate with the admin.logentry model.

That worked for me!


If you exclude the contenttype app as in your example, you may not be able to export any app that has foreginkeys against that app. Removing the --exclude contenttypes might make it work.

Leave a comment