Remove database name necessity in uri connection schema

This commit is contained in:
Alexandr Morozov
2013-08-21 13:52:24 +04:00
parent fffd0e8990
commit f57569f553
3 changed files with 32 additions and 6 deletions

View File

@@ -23,12 +23,15 @@ arguments should be provided::
connect('project1', username='webapp', password='pwd123')
Uri style connections are also supported as long as you include the database
name - just supply the uri as the :attr:`host` to
Uri style connections are also supported - just supply the uri as
the :attr:`host` to
:func:`~mongoengine.connect`::
connect('project1', host='mongodb://localhost/database_name')
Note that database name from uri has priority over name
in ::func:`~mongoengine.connect`
ReplicaSets
===========