I have a case when my db requires new token generated dynamicly as a password every 15 minutes. But it is advice from django team not to modify settings at runtime. And I found out that this is really not so easy to accomplish. I already tried this approche:
Django multiple and dynamic databases
but it seems more complex then it could be ...