开发者

Loading Django sites (contrib.sites) in initial_data

开发者 https://www.devze.com 2023-02-10 10:42 出处:网络
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?

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 开发者_如何学Gothere:

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

Thanks!


You don't need the django.contrib part.

0

精彩评论

暂无评论...
验证码 换一张
取 消