Multiple database support in django

后端 未结 10 2046
囚心锁ツ
囚心锁ツ 2020-12-31 11:44

From some forum I came to know that Multiple database support is added in Django at lower level, but the higher level apis are not added yet.

Can anyone please tell

10条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-31 12:29

    Eric Florenzano's approach works well if all your databases use the same engine. If you have different engines (Postgres and MSSQL in my case) you will run into many issues deep in the ORM code (such as models/sql/where.py using the default connection's SQL syntax).

    If you need this to work, you should wait for Alex Gaynor's MultiDB project which is planned for Django 1.2

提交回复
热议问题