Closed lig closed 8 years ago
Architect supports multi databases in Django, see docs, specifically the db
option where you need to set the connection name used for this model. DEFAULT_DB_ALIAS is used when db
option isn't set.
Thank you for the clarification. I will try that option.
However, it looks like using django db router to determine the correct DB Alias for the Model by default will be much more handy.
Agree, however this isn't implemented at the moment, so we'll keep this issue open until I have time to do that or somebody will make a pull request.
Added in v0.5.4.
Django ConnectionMixin supports DEFAULT_DB_ALIAS only. https://github.com/maxtepkeev/architect/blob/master/architect/orms/django/features.py#L20
There should be support for multi db Django configuration https://docs.djangoproject.com/en/1.9/topics/db/multi-db/