Skip to content

Commit 746face

Browse files
committed
Document fact that srv URI can be used with host #1956
1 parent eb56fb9 commit 746face

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)