Skip to content

Commit a993adf

Browse files
committed
more wording changes
1 parent aa3814b commit a993adf

File tree

7 files changed

+35
-15
lines changed

7 files changed

+35
-15
lines changed

source/django-get-started/django-connect-mongodb.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ Configure your MongoDB Connection
1414
.. procedure::
1515
:style: connected
1616

17+
After installing {+django-odm+} and creating a MongoDB Atlas deployment,
18+
you can create a Django project that connects to MongoDB.
19+
1720
.. step:: Create a Django project
1821

1922
From your shell, run the following command to create a

source/django-get-started/django-connection-string.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ To connect to an instance or deployment not hosted on Atlas, see
1919
.. procedure::
2020
:style: connected
2121

22-
.. step:: Find your MongoDB Atlas Connection String
22+
.. step:: Find your MongoDB Atlas connection string
2323

2424
To retrieve your connection string for the deployment that
2525
you created in the :ref:`previous step <django-get-started-create-deployment>`,
@@ -35,15 +35,15 @@ To connect to an instance or deployment not hosted on Atlas, see
3535
that best matches the version you installed from the :guilabel:`Version`
3636
selection menu.
3737

38-
.. step:: Copy your Connection String
38+
.. step:: Copy your connection string
3939

4040
Click the button on the right of the connection string to copy it to
4141
your clipboard as shown in the following screenshot:
4242

4343
.. figure:: /includes/figures/atlas_connection_copy_string_python.png
4444
:alt: The connection string copy button in the Atlas UI
4545

46-
.. step:: Update the Placeholders
46+
.. step:: Update the placeholders
4747

4848
Paste this connection string into a file in your preferred text editor
4949
and replace the ``<username>`` and ``<password>`` placeholders with

source/django-get-started/django-create-app.txt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,16 @@ Create an Application
1414
.. procedure::
1515
:style: connected
1616

17+
In your ``quickstart`` project, you can create an application
18+
that interacts with the Atlas sample database called ``sample_mflix``.
19+
This database contains a ``movies`` collection, which stores
20+
information about movies. The database also contains a ``users``
21+
collection, which stores information about movie viewers who use
22+
a streaming service.
23+
24+
To learn more about the ``sample_mflix`` database, see :atlas:`Sample Mflix Dataset
25+
</sample-data/sample-mflix/>` in the Atlas documentation.
26+
1727
.. step:: Create a "sample_mflix" app
1828

1929
From your project's root directory, run the following command to create a
@@ -78,8 +88,7 @@ Create an Application
7888
a list of genres that describe the movie.
7989

8090
The ``Award`` model does not represent a separate collection. Instead, it
81-
represents the embedded document values that the ``awards``
82-
field of the ``Movie`` model stores.
91+
represents the embedded document values stored in the ``Movie`` model.
8392

8493
The ``Viewer`` model represents the ``sample_mflix.users`` collection
8594
and stores account credentials for movie viewers.
@@ -243,4 +252,4 @@ Create an Application
243252
python3 manage.py migrate
244253

245254
After completing these steps, you have a basic {+django-odm+} app that
246-
you can use to interact with the ``sample_mflix`` database.
255+
you can use to access the ``sample_mflix`` Atlas database.

source/django-get-started/django-create-deployment.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ your MongoDB database in the cloud.
1111
.. procedure::
1212
:style: connected
1313

14-
.. step:: Create a Free MongoDB deployment on Atlas
14+
.. step:: Create a free MongoDB deployment on Atlas
1515

1616
Complete the :atlas:`Get Started with Atlas </getting-started?tck=docs_driver_python>`
1717
guide to set up a new Atlas account and a free tier MongoDB deployment.
1818
Ensure that you **load sample data** and **add your IP address** to the IP access
1919
list.
2020

21-
.. step:: Save your Credentials
21+
.. step:: Save your credentials
2222

2323
After you create your database user, save that user's
2424
username and password to a safe location for use in an upcoming step.

source/django-get-started/django-install.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Download and Install
1414
.. procedure::
1515
:style: connected
1616

17-
.. step:: Install Dependencies
17+
.. step:: Install the dependencies
1818

1919
Before installing {+django-odm+}, ensure you have the following dependencies installed
2020
in your development environment:

source/django-get-started/django-query-data.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ Query MongoDB Data
1111
.. meta::
1212
:keywords: app, odm, code example
1313

14+
You can use the Python interactive shell and your
15+
models to read data from the ``sample_mflix`` database.
16+
1417
.. procedure::
1518
:style: connected
1619

source/django-get-started/django-write-data.txt

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ Write Data to MongoDB
1111
.. meta::
1212
:keywords: app, odm, code example
1313

14+
You can use your application's models to update documents
15+
stored in the ``sample_mflix`` database. To update documents,
16+
enter the Python interactive shell and call create, update,
17+
and delete functions on your model objects.
18+
1419
.. procedure::
1520
:style: connected
1621

@@ -58,7 +63,7 @@ Write Data to MongoDB
5863
.. step:: Update your movie object
5964

6065
The ``Movie`` object created in the previous step has inaccurate data:
61-
the ``runtime`` value is ``217``, but the correct ``runtime`` is ``117``.
66+
the ``runtime`` value is ``217``, but the correct ``runtime`` value is ``117``.
6267

6368
Run the following code to update the object's ``runtime`` value:
6469

@@ -71,7 +76,7 @@ Write Data to MongoDB
7176

7277
You can also use your ``Viewer`` model to insert documents into the
7378
``sample_mflix.users`` collection. Run the following code to create
74-
a ``Viewer`` object that stores data about a user named ``"Abigail Carter"``:
79+
a ``Viewer`` object that stores data about a movie viewer named ``"Abigail Carter"``:
7580

7681
.. code-block:: python
7782

@@ -113,14 +118,14 @@ Write Data to MongoDB
113118

114119
.. step:: Render your new objects
115120

116-
To ensure that your ``Movie`` object was inserted into the database,
121+
To ensure that you inserted a ``Movie`` object into the database,
117122
visit the http://127.0.0.1:8000/sample_mflix/recent_movies/ URL.
118-
You should see a list of five movies in the ``sample_mflix.movies``
123+
You can see a list of five movies in the ``sample_mflix.movies``
119124
database, with your new movie listed at the top.
120125

121-
Then, ensure that your ``Viewer`` object was inserted into the
126+
Then, ensure that you inserted a ``Viewer`` object into the
122127
database by visiting the http://127.0.0.1:8000/sample_mflix/viewers_list/
123-
URL. You should see a list of ten viewer names in the ``sample_mflix.users``
128+
URL. You can see a list of ten viewer names in the ``sample_mflix.users``
124129
database, with your new viewer listed at the top. Ensure that the
125130
viewer named "Alliser Thorne", deleted in a previous step, does not appear
126131
in this list.

0 commit comments

Comments
 (0)