문제

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!

도움이 되었습니까?

해결책

You don't need the django.contrib part.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top