Skip to content

Commit c34f094

Browse files
authored
Update pymongo docs link (#195)
1 parent 3934fae commit c34f094

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ constructor. These are passed directly through to the underlying
114114
By default, Flask-PyMongo sets the ``connect`` keyword argument to
115115
``False``, to prevent PyMongo from connecting immediately. PyMongo
116116
itself `is not fork-safe
117-
<https://www.mongodb.com/docs/languages/python/pymongo-driver/current/faq/#is-pymongo-fork-safe->`_,
117+
<https://www.mongodb.com/docs/languages/python/pymongo-driver/current/connect/mongoclient/#forking-a-process-causes-a-deadlock>`_,
118118
and delaying connection until the app is actually used is necessary to
119119
avoid issues. If you wish to change this default behavior, pass
120120
``connect=True`` as a keyword argument to ``PyMongo``.

flask_pymongo/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def init_app(self, app: Flask, uri: str | None = None, *args: Any, **kwargs: Any
110110
database_name = parsed_uri["database"]
111111

112112
# Try to delay connecting, in case the app is loaded before forking, per
113-
# https://www.mongodb.com/docs/languages/python/pymongo-driver/current/faq/#is-pymongo-fork-safe-
113+
# https://www.mongodb.com/docs/languages/python/pymongo-driver/current/connect/mongoclient/#forking-a-process-causes-a-deadlock
114114
kwargs.setdefault("connect", False)
115115
if DriverInfo is not None:
116116
kwargs.setdefault("driver", DriverInfo("Flask-PyMongo", __version__))

0 commit comments

Comments
 (0)