File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,15 @@ You may also pass additional keyword arguments to the ``PyMongo``
89
89
constructor. These are passed directly through to the underlying
90
90
:class: `~pymongo.mongo_client.MongoClient ` object.
91
91
92
+ .. note ::
93
+
94
+ Unless you specify otherwise, PyMongo will attempt to connect to your
95
+ MongoDB server immediately (within the call to :meth: `init_app ` in the
96
+ case of Flask-PyMongo). If the web server you are running Flask in loads
97
+ your application before forking, you may experience problems. In these
98
+ cases, you are advised to pass ``connect=False `` to ``PyMongo ``, or
99
+ append ``?connect=false `` to your MongoDB URI.
100
+
92
101
You can create multiple ``PyMongo `` instances, to connect to multiple
93
102
databases or database servers:
94
103
You can’t perform that action at this time.
0 commit comments