Opened 13 years ago
Closed 13 years ago
#17708 closed Bug (duplicate)
Django "sites" framework requires a Site model in every database during the tests.
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | contrib.sites | Version: | 1.3 |
Severity: | Normal | Keywords: | multiple databases sites tests |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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.
Note:
See TracTickets
for help on using tickets.
Duplicate of #16828, #16515, #16353 and fixed in trunk and 1.3.X.