Skip to content

Commit 4848f5e

Browse files
committed
more cleanup
1 parent 587330f commit 4848f5e

File tree

8 files changed

+15
-16
lines changed

8 files changed

+15
-16
lines changed

source/get-started/connection-string.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ The connection string includes the hostname or IP address and
1313
port of your deployment, the authentication mechanism, user credentials
1414
when applicable, and connection options.
1515

16-
To connect to an instance or deployment not hosted on Atlas, see
17-
:ref:`pymongo-connection-targets` in the PyMongo documentation.
18-
1916
.. procedure::
2017
:style: connected
2118

@@ -52,9 +49,9 @@ To connect to an instance or deployment not hosted on Atlas, see
5249
.. code-block:: none
5350
:copyable: false
5451

55-
mongodb+srv://<username>:<password>@samplecluster.jkiff1s.mongodb.net/?retryWrites=true&w=majority&appName=SampleCluster
52+
mongodb+srv://<db_username>:<db_password>@samplecluster.ojeyz.mongodb.net/?retryWrites=true&w=majority&appName=SampleCluster
5653

57-
Replace the ``<username>`` and ``<password>`` placeholders with
54+
Replace the ``<db_username>`` and ``<db_password>`` placeholders with
5855
your database user's username and password.
5956

6057
.. step:: Add a database to your connection string
@@ -65,7 +62,7 @@ To connect to an instance or deployment not hosted on Atlas, see
6562
.. code-block:: none
6663
:copyable: false
6764

68-
mongodb+srv://<username>:<password>@samplecluster.jkiff1s.mongodb.net/<database name>?retryWrites=true&w=majority&appName=SampleCluster
65+
mongodb+srv://<db_username>:<db_password>@samplecluster.ojeyz.mongodb.net/<database name>?retryWrites=true&w=majority&appName=SampleCluster
6966

7067
Replace the ``<database name>`` placeholder with ``sample_mflix`` to
7168
configure a connection to the ``sample_mflix`` Atlas sample database.

source/get-started/create-app.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ To learn more about the ``sample_mflix`` database, see :atlas:`Sample Mflix Data
3838
The ``django-mongodb-app`` template ensures that your ``app.py`` file
3939
includes the line ``"default_auto_field = 'django_mongodb_backend.fields.ObjectIdAutoField'"``.
4040

41-
.. step:: Create models for movie, awards, and viewer data
41+
.. step:: Create models for movie, award, and viewer data
4242

4343
Open the ``models.py`` file in the ``sample_mflix`` directory and replace
4444
its contents with the following code:
@@ -121,6 +121,7 @@ To learn more about the ``sample_mflix`` database, see :atlas:`Sample Mflix Data
121121
``INSTALLED_APPS`` setting to resemble the following code:
122122

123123
.. code-block:: python
124+
:emphasize-lines: 2
124125

125126
INSTALLED_APPS = [
126127
'sample_mflix.apps.SampleMflixConfig',

source/get-started/query-data.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ to read data from the ``sample_mflix`` database.
1717
.. procedure::
1818
:style: connected
1919

20-
.. step:: Query the "users" collection for a specified email
20+
.. step:: Query the users collection for a specified email
2121

2222
Start a Python shell by running the following command:
2323

@@ -42,7 +42,7 @@ to read data from the ``sample_mflix`` database.
4242

4343
<Viewer: Khal Drogo>
4444

45-
.. step:: Query the "movies" collection for specified runtime values
45+
.. step:: Query the movies collection for specified runtime values
4646

4747
Run the following code to query the ``sample_mflix.movies``
4848
collection for movies that have a ``runtime`` value less than

source/get-started/write-data.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ and delete functions on your model objects.
3939
:language: python
4040
:copyable:
4141

42-
.. step:: Insert a movie into the database
42+
.. step:: Insert a Movie into the database
4343

4444
Run the following code to create an ``Movie`` object that
4545
stores data about a movie titled ``"Minari"``, including
-35 KB
Loading
-2.23 KB
Loading

source/interact-data/crud.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ Delete Documents
241241
----------------
242242

243243
To delete documents in a collection, call the ``filter()`` and ``delete()``
244-
methods on your model's ``Manager`` class. Pass a query filter,
245-
or criteria that specifies which documents to delete, as an argument to the
244+
methods on your model's manager, Pass a query filter, or criteria
245+
that specifies which documents to delete, as an argument to the
246246
``filter()`` method.
247247

248248
Example

source/model-data/models.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,9 @@ and pass the following arguments:
374374
- ``size``: Specifies the maximum size of the array. This field is
375375
optional.
376376

377-
- ``options``: Specifies {+framework+} field options. To view a list of
378-
available options, see `Field options <{+django-docs+}/ref/models/fields/#field-options>`__
377+
- ``options``: Specifies {+framework+} field options. This field is
378+
optional. To view a list of available options, see `Field options
379+
<{+django-docs+}/ref/models/fields/#field-options>`__
379380
in the {+framework+} documentation.
380381

381382
.. tip::
@@ -417,7 +418,7 @@ the ``EmbeddedModelField()`` class constructor and pass the following arguments:
417418

418419
- ``embedded_model``: Specifies the model class to store.
419420

420-
- ``options``: Specifies {+framework+} field options. To view a list of
421+
- ``options``: Specifies {+framework+} field options. This field is optional. To view a list of
421422
available options, see `Field options <{+django-docs+}/ref/models/fields/#field-options>`__
422423
in the {+framework+} documentation.
423424

@@ -452,7 +453,7 @@ Additional Information
452453
----------------------
453454

454455
To learn how to use your models to run database operations,
455-
see the :ref:`interact-data` guides.
456+
see the :ref:`django-interact-data` guides.
456457

457458
To learn more about {+framework+} field types, see `Model index reference
458459
<{+django-docs+}/ref/models/fields/>`__ in the {+framework+}

0 commit comments

Comments
 (0)