Skip to content Skip to sidebar Skip to footer

Django - Multiple Databases

So I'm somewhat new to the whole Django databases and maybe I just don't fully understand the Django routers talked about here: https://docs.djangoproject.com/en/dev/topics/db/mult

Solution 1:

I guess you can read a secondary database with using.

Try like this.

i.e RecsData.using("RECS")._meta.fields

For more refer here https://docs.djangoproject.com/en/dev/topics/db/multi-db/#manually-selecting-a-database

Post a Comment for "Django - Multiple Databases"