-
Notifications
You must be signed in to change notification settings - Fork 20
DOCSP-46328: Django connection configuration #142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
e35be75
445573a
49b6d69
5500f74
9a9220b
3b69e3e
f935192
1049049
11d4f2c
90b7c58
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,20 +51,20 @@ | |
connection. | ||
|
||
To configure the ``default`` key, include the following | ||
fields: | ||
nested keys: | ||
|
||
.. list-table:: | ||
:header-rows: 1 | ||
:widths: 20 80 | ||
|
||
* - Field | ||
* - Key | ||
- Description | ||
|
||
* - **ENGINE** | ||
- The backend driver to use for the connection. Set this field to ``"django_mongodb_backend"``. | ||
- The backend driver to use for the connection. Set this key to ``"django_mongodb_backend"``. | ||
|
||
* - **HOST** | ||
- | Your connection URI. For localhost connections, this field is optional. | ||
- | Your connection URI. For localhost connections, this key is optional. | ||
| For SRV connections, you must include a scheme prefix (``mongodb+srv://``). | ||
| | ||
| If connecting to a replica set or sharded cluster with multiple hosts, specify | ||
|
@@ -81,10 +81,10 @@ | |
|
||
* - **PORT** | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here you can say the default port is 27017 |
||
- | The port number on which the database server is listening. | ||
| For MongoDB Atlas connections, this field is optional. | ||
| For MongoDB Atlas connections, this key is optional. | ||
|
||
* - **OPTIONS** | ||
- A dictionary of additional connection options for the database. This field is optional. | ||
- A dictionary of additional connection options for the database. This key is optional. | ||
Check failure on line 87 in source/configure-connection.txt
|
||
|
||
.. _django-manual-config-example: | ||
|
||
|
@@ -125,7 +125,7 @@ | |
.. tip:: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. s: move this to the OPTIONS row above (and take out of tip box to avoid nested admonition) |
||
|
||
To see a full list of connection options that you | ||
can set in the ``OPTIONS`` field, see the optional | ||
can set in the ``OPTIONS`` nested key, see the optional | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. s/key/dictionary/, otherwise, nice! |
||
parameters for `MongoClient <https://pymongo.readthedocs.io/en/4.10.1/api/pymongo/mongo_client.html#pymongo.mongo_client.MongoClient>`__ | ||
in the PyMongo API documentation. | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To configure the
default
database, include the following nested dictionary.