Skip to content

Commit

Permalink
Merge pull request #2415 from bagerard/add_srv_uri_connect_doc
Browse files Browse the repository at this point in the history
Document fact that srv URI can be used with host #1956
  • Loading branch information
bagerard committed Nov 11, 2020
2 parents eb56fb9 + 746face commit fc3ccf9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/guide/connecting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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`: ::

Expand Down

0 comments on commit fc3ccf9

Please sign in to comment.