Database, username and password from URI string overrides corresponding parameters in connect()
In my understanding that meant that parameters passed through the URI would override keyword parameters, but it turns out that everything is overridden. Including information not specified in the URI.
In the following call username and password are given as keyword parameters, and later on (connection.py#L62) get overridden by the URI information, which is None.
mongoengine.connect('mydb', username='user', password='passwd', host='mongodb://localhost:27017')
The documentation states that
In my understanding that meant that parameters passed through the URI would override keyword parameters, but it turns out that everything is overridden. Including information not specified in the URI.
In the following call username and password are given as keyword parameters, and later on (connection.py#L62) get overridden by the URI information, which is
None
.mongoengine.connect('mydb', username='user', password='passwd', host='mongodb://localhost:27017')