Django "sites" framework requires a Site model in every database during the tests.
|Reported by:||wojtekzozlak@…||Owned by:||nobody|
|Severity:||Normal||Keywords:||multiple databases sites tests|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Lets assume, that we have two databeses - 'default' and 'main'.
We're using router, with defined allow_syncdb method, which distribute models between them.
We're also using a Django "sites" framework.
During the tests (./manage.py test app), Django stubbornly tries to reach and populate the django_sites table in EVERY database, which of course ends with an error.