Skip to content

Commit 5500f74

Browse files
committed
field->key
1 parent 49b6d69 commit 5500f74

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

source/configure-connection.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,20 @@ which you must configure to set MongoDB as the default database
5151
connection.
5252

5353
To configure the ``default`` key, include the following
54-
fields:
54+
nested keys:
5555

5656
.. list-table::
5757
:header-rows: 1
5858
:widths: 20 80
5959

60-
* - Field
60+
* - Key
6161
- Description
6262

6363
* - **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"``.
6565

6666
* - **HOST**
67-
- | Your connection URI. For localhost connections, this field is optional.
67+
- | Your connection URI. For localhost connections, this key is optional.
6868
| For SRV connections, you must include a scheme prefix (``mongodb+srv://``).
6969
|
7070
| If connecting to a replica set or sharded cluster with multiple hosts, specify
@@ -81,10 +81,10 @@ fields:
8181

8282
* - **PORT**
8383
- | 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.
8585

8686
* - **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.
8888

8989
.. _django-manual-config-example:
9090

@@ -125,7 +125,7 @@ to a MongoDB deployment with the following configuration:
125125
.. tip::
126126

127127
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
129129
parameters for `MongoClient <https://pymongo.readthedocs.io/en/4.10.1/api/pymongo/mongo_client.html#pymongo.mongo_client.MongoClient>`__
130130
in the PyMongo API documentation.
131131

0 commit comments

Comments
 (0)