Skip to content

Commit fc3ccf9

Browse files
authored
Merge pull request #2415 from bagerard/add_srv_uri_connect_doc
Document fact that srv URI can be used with host #1956
2 parents eb56fb9 + 746face commit fc3ccf9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/guide/connecting.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ the :attr:`host` to
3131

3232
connect('project1', host='mongodb://localhost/database_name')
3333

34+
.. note:: URI containing SRV records (e.g mongodb+srv://server.example.com/) can be used as well as the :attr:`host`
35+
3436
.. note:: Database, username and password from URI string overrides
3537
corresponding parameters in :func:`~mongoengine.connect`: ::
3638

0 commit comments

Comments
 (0)