Mathias> As I have written on SO, I need it to select a DB connection Mathias> so that any call to a subdomain only uses the DB that is Mathias> associated with it. This will greatly simplify my app, and Mathias> will also give me sharding almost for free, along with some Mathias> extra security.
Hm ... is it impossible you use sessions and multi-db from Django 1.2 to get this working? There has been this article http://djangoadvent.com/1.2/scaling-django/ recently which talks about the fact that Django indeed is a shared-nothing application server once you use sessions [0]. Not sure so if I understood you correctly, might all be nonsense I am telling you ... all I am saying is that maybe you do not need to have this redirect done at the webserver-level but just use sessions in Django. [0] http://docs.djangoproject.com/en/dev/topics/http/sessions/#using-database-backed-sessions _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
