Configure Django Database Routers
问题 I am trying to connect a new Django site to legacy DBs. From everything I can gather I need to create a database router. The docs refer to creating an app_label in the meta section of the model. This is what the router would match to. I have also seen where people say this is not longer supported. I am racking my brain here please help!! Here is the code: class CucRouter(object): def db_for_read(self, model): if model._meta.app_label == 'CUCMCDR': return 'CUCMCDR' return 'default' That is the