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:
Bastien Gérard 2020-11-11 21:05:52 +01:00 committed by GitHub
commit fc3ccf9606
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`: ::