Remove database name necessity in uri connection schema
This commit is contained in:
		| @@ -23,12 +23,15 @@ arguments should be provided:: | ||||
|  | ||||
|     connect('project1', username='webapp', password='pwd123') | ||||
|  | ||||
| Uri style connections are also supported as long as you include the database | ||||
| name - just supply the uri as the :attr:`host` to | ||||
| Uri style connections are also supported - just supply the uri as | ||||
| the :attr:`host` to | ||||
| :func:`~mongoengine.connect`:: | ||||
|  | ||||
|     connect('project1', host='mongodb://localhost/database_name') | ||||
|  | ||||
| Note that database name from uri has priority over name | ||||
| in ::func:`~mongoengine.connect` | ||||
|  | ||||
| ReplicaSets | ||||
| =========== | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user