Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
各テストでそれらを設定することを避けることができるように、initial_data フィクスチャを通じていくつかの初期サイトを (サイト フレームワークから) ロードする方法はありますか?
そこに配置しようとすると、次のエラーが発生します。
DeserializationError: Invalid model identifier: 'django.contrib.sites.site'
ありがとう!
その部分は必要ありませんdjango.contrib。
django.contrib