Question

Is there a way to load some initial sites (from the sites framework) thorough initial_data fixtures, so that I can avoid setting them up in each of my tests?

I'm having this error trying to put it there:

DeserializationError: Invalid model identifier: 'django.contrib.sites.site'

Thanks!

Was it helpful?

Solution

You don't need the django.contrib part.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top