From 746faceb5c14ca1fdcd327949066fb02eba2c5f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastien=20G=C3=A9rard?= Date: Sun, 8 Nov 2020 22:55:24 +0100 Subject: [PATCH] Document fact that srv URI can be used with host #1956 --- docs/guide/connecting.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/guide/connecting.rst b/docs/guide/connecting.rst index ac2146a6..03d6ed5c 100644 --- a/docs/guide/connecting.rst +++ b/docs/guide/connecting.rst @@ -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`: ::