Merge pull request #2415 from bagerard/add_srv_uri_connect_doc
Document fact that srv URI can be used with host #1956
This commit is contained in:
commit
fc3ccf9606
@ -31,6 +31,8 @@ the :attr:`host` to
|
||||
|
||||
connect('project1', host='mongodb://localhost/database_name')
|
||||
|
||||
.. note:: URI containing SRV records (e.g mongodb+srv://server.example.com/) can be used as well as the :attr:`host`
|
||||
|
||||
.. note:: Database, username and password from URI string overrides
|
||||
corresponding parameters in :func:`~mongoengine.connect`: ::
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user