How to change db in django depending on request.get_host()?

Posted by Alexandr on Stack Overflow See other posts from Stack Overflow or by Alexandr
Published on 2010-03-28T08:05:17Z Indexed on 2010/03/28 8:13 UTC
Read the original article Hit count: 294

I am creating multisites platform. Anybody can make simple site, with my platform. I plan to use django multidb support. One db for one site. And i need to change db settings depending on request.get_host(). I think that i's not good idea. Prompt other decisions? How it is realised on various designers of sites?

© Stack Overflow or respective owner

Related posts about django

Related posts about python