Saturday, August 24, 2019

Different databases depending on request

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

GeoSignage Sverige AB | www.geosignage.com
EC1 Entreprenörcenter, Baltzarsgatan 18 | SE-211 36 Malmö | Sweden

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAEohZU2dBmHwGJ%2BUGTcRYjfQWjMw1Pfg%2BwfA%2BxJ0kxD%2Bzmwojg%40mail.gmail.com.

No comments:

Post a Comment