阅读背景:

如何根据request.get_host()更改django中的db?

来源:互联网 

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?I am creating multisites platform. Anybody can




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: