-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
Messing around with the DATABASES setting during application runtime
is a bad idea, you want to leave that static.
What you're describing sounds like multi-tenancy; there are a number
of packages for this that have been forked off of each other, which
solve this separation using one Postgres schema per tenant in a single
database. Right now the one that appears to be maintained would be
https://github.com/tomturner/django-tenants.
Good luck,
Michal
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCgAGBQJcNMOzAAoJEHA7T/IPM/klRJkP+wZX7rO2EKpbhID6iYH28d9j
nFyMBag0RWh4etYEm5FLxz3u+3IPmxoK9n8EuuaP79+XIqgXP/kdnQODd3Wl2I6e
q8TOUiEFAP1cmtbzMwlQ/llBLZZBUpy6SCWe3rlwiTnkV71JCMsu4Y7h3mWgSsT0
zedUXYYUlfwdNQMWy4F0AJA4CYimpZL8bW67ofdcWkg8fWfCegeLPGId7uCMYqlf
YfkuqP4YNSnjakJYyK5pxjHj11XfzR2fw6JZNl5mY48bAZW52/sasKzCzB80syXv
gRj6WJdMBn2nfUosW6MsqsF55IToEM9fsFzCxJZ/ztSrsIiJ7DqN/JEAmeEkEMuF
QA/2n6fFKlsK0VyrZWu61XmVvhGc5FZ1OlcLimt6RsabuTk/YT9vfWq0wScS+d+K
WwI+T2VCWeG/PheF/sFC2q9jGYm7SDAwERL98qldGEpLXCAbZkFtmZcfcA/fCfl7
5KTKGEJFWwPkBK+DNJXVuf/pm7G6v/hpdRqphSgG027D/NHkvtLJd38webAm66nQ
Y4x0BOEAPMs9ebHgvFES3+cwm0J3OCu6g7DSqUrU/qovsHbb8UTmL0j02xsen0ch
gRJbuXCCsIHf2JZgLJ2k36kRfi9FbXy+49PCJovE0iwoZ9zzt3Ddw6K3KBvNQAI8
RojsNvkdIWRmeZN0E/SA
=FjFS
-----END PGP SIGNATURE-----