@@ -51,20 +51,20 @@ which you must configure to set MongoDB as the default database
51
51
connection.
52
52
53
53
To configure the ``default`` key, include the following
54
- fields :
54
+ nested keys :
55
55
56
56
.. list-table::
57
57
:header-rows: 1
58
58
:widths: 20 80
59
59
60
- * - Field
60
+ * - Key
61
61
- Description
62
62
63
63
* - **ENGINE**
64
- - The backend driver to use for the connection. Set this field to ``"django_mongodb_backend"``.
64
+ - The backend driver to use for the connection. Set this key to ``"django_mongodb_backend"``.
65
65
66
66
* - **HOST**
67
- - | Your connection URI. For localhost connections, this field is optional.
67
+ - | Your connection URI. For localhost connections, this key is optional.
68
68
| For SRV connections, you must include a scheme prefix (``mongodb+srv://``).
69
69
|
70
70
| If connecting to a replica set or sharded cluster with multiple hosts, specify
@@ -81,10 +81,10 @@ fields:
81
81
82
82
* - **PORT**
83
83
- | The port number on which the database server is listening.
84
- | For MongoDB Atlas connections, this field is optional.
84
+ | For MongoDB Atlas connections, this key is optional.
85
85
86
86
* - **OPTIONS**
87
- - A dictionary of additional connection options for the database. This field is optional.
87
+ - A dictionary of additional connection options for the database. This key is optional.
88
88
89
89
.. _django-manual-config-example:
90
90
@@ -125,7 +125,7 @@ to a MongoDB deployment with the following configuration:
125
125
.. tip::
126
126
127
127
To see a full list of connection options that you
128
- can set in the ``OPTIONS`` field , see the optional
128
+ can set in the ``OPTIONS`` nested key , see the optional
129
129
parameters for `MongoClient <https://pymongo.readthedocs.io/en/4.10.1/api/pymongo/mongo_client.html#pymongo.mongo_client.MongoClient>`__
130
130
in the PyMongo API documentation.
131
131
0 commit comments