I found another reason for this error, I wanted to add if this helps someone else. What caused this problem for me was that I created a group with specific permissions and then uninstalled the application that was indicated in the group.
In particular, I installed the reversion at some point and created a group called "Site Editor", which gave the user the right to create, edit and delete changes. Later, I did not install the revision, but the group permissions remained when I ran the "dumpdata" command:
[ { "fields": { "name": "Site Editor", "permissions": [ [ "add_logentry", "admin", "logentry" ], [ "change_logentry", "admin", "logentry" ], [ "delete_logentry", "admin", "logentry" ], [ "add_group", "auth", "group" ], [ "change_group", "auth", "group" ], [ "delete_group", "auth", "group" ], [ "add_revision", "reversion", "revision" ], [ "change_revision", "reversion", "revision" ], [ "delete_revision", "reversion", "revision" ], [ "add_version", "reversion", "version" ], [ "change_version", "reversion", "version" ], [ "delete_version", "reversion", "version" ], [ "add_session", "sessions", "session" ], [ "change_session", "sessions", "session" ], [ "delete_session", "sessions", "session" ], [ "add_site", "sites", "site" ], [ "change_site", "sites", "site" ], [ "delete_site", "sites", "site" ] ] }, "model": "auth.group", "pk": 2 }]
When I tried to run the "loaddata" command, I ran into this error all the time:
django.core.serializers.base.DeserializationError: Problem installing fixture '/Users/me/Documents/Sites/project/path/fixtures/configuration.json': ContentType matching query does not exist.
My solution was to simply remove any link to the reverse and versions in the device itself, for example:
[ { "fields": { "name": "Site Editor", "permissions": [ [ "add_logentry", "admin", "logentry" ], [ "change_logentry", "admin", "logentry" ], [ "delete_logentry", "admin", "logentry" ], [ "add_group", "auth", "group" ], [ "change_group", "auth", "group" ], [ "delete_group", "auth", "group" ], [ "add_session", "sessions", "session" ], [ "change_session", "sessions", "session" ], [ "delete_session", "sessions", "session" ], [ "add_site", "sites", "site" ], [ "change_site", "sites", "site" ], [ "delete_site", "sites", "site" ] ] }, "model": "auth.group", "pk": 2 }]
Then I managed to import the device without any problems.