tuttle/django-schemata — pull request #3 by tgecho (2011-12-19 15:28:23+00:00)
Title: Added a few tests

So on further experimenting I started to bump into some other edges. Site.objects.get_current is a bit simplistic in the way it caches the current site, so it just keeps returning the first site it ever found without checking the DB again. Django-multihost and its cousins fix that by monkey patching the function altogether. https://github.com/jaddison/django-multihost/blob/master/multihost/middleware.py. I'm sure there are more issues to consider as you go along such as cache keys.

For a few other reasons I'm planning to use a different approach, but I figured I'd offer the tests as a warning/help to anyone else who might come along.