﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
33578	How feasible is modifying the django.db.connections object at run time for a multitenant system which uses isolated databases for tenancy	Mukil Rajeev	nobody	"I have a FastAPI based application for which I am using the Django ORM to access the databases. And Im using the starlette-config dependency to manage the request context including the database details which will be part of the request.

I am currently updating the django.db.connections.databases object on the fly in a FastAPI middleware as detailed here: https://stackoverflow.com/a/28891429/2324527

After this, Im using a custom database router to select the newly added database for performing the database operation. Is this method feasible for production?

If so, do we have a more streamlined approach that could be introduced so that django supports dynamic database switching on the fly?"	New feature	closed	Database layer (models, ORM)	4.0	Normal	invalid	dbrouter	mukilrajeev@…	Unreviewed	0	0	0	0	0	0
