【发布时间】:2014-02-26 08:04:46
【问题描述】:
我正在使用 django non-rel 和 mongodb 后端。 文档很清楚如何连接到单个主机,但是我想连接到副本集中的所有主机。
可以吗?
settings.py 中的 DATABASES 元素对于这样的连接字符串会是什么样子:
mongodb://db1.example.net,db2.example.net:2500/?replicaSet=test
【问题讨论】:
标签: django-nonrel django-mongodb-engine