Несколько баз данных для одной модели в Django
Django, похоже, поддерживает несколько баз данных и позволяет каждой модели переопределять методы для маршрутизации к определенной базе данных (официальный документ ).
Два вопроса:
- Does it support routing for the same model into different databases, for example for partitioning (say I want to split my users across multiple databases based on a predicate like the length of the username or the first letter, etc...)
- How does it works/render in the admin UI? I would need to aggregate the data from all databases in my case.