Different databases depending on request

11 views
Skip to first unread message

Fredrik Gustafsson

unread,
Aug 24, 2019, 6:27:42 AM8/24/19
to django...@googlegroups.com
I've multiple django sites: customer1.example.com, customer2.example.com, customer3.example.com, etc. I want to use one django instance for all customers. How can I make django to dynamic change it's database depending on the hostname of the webrequest?

--
Fredrik Gustafsson
CTO
fredrik.g...@geosignage.se | +46 (0)708-953341

GeoSignage Sverige AB | www.geosignage.com
EC1 Entreprenörcenter, Baltzarsgatan 18 | SE-211 36 Malmö | Sweden
Reply all
Reply to author
Forward
0 new messages