Skip to content

Commit aa3814b

Browse files
committed
edits
1 parent 6b599a7 commit aa3814b

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ in the Django documentation.
6363
Enter the username and password created in the previous step to log in to
6464
the site.
6565

66-
.. step:: Access your sample_mflix app from the admin site
66+
.. step:: Access your "sample_mflix" app from the admin site
6767

68-
After logging in to the admin site, you can see the following index
69-
page:
68+
After logging in to the admin site, you can see the following information:
7069

7170
.. figure:: /includes/figures/django_admin_index.png
7271
:alt: The initial content displayed on the Django admin site.

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@ Query MongoDB Data
1414
.. procedure::
1515
:style: connected
1616

17-
.. step:: Query the users collection for a specified email
17+
.. step:: Query the "users" collection for a specified email
1818

19-
Start a Python shell and include the required imports
19+
Start a Python shell and import the required models
2020
by running the following code:
2121

22+
.. code-block:: bash
23+
24+
python3 manage.py shell
25+
from sample_mflix.models import Movie, Viewer
2226

2327
Then, run the following code to query the
2428
``sample_mflix.users`` collection for a movie viewer whose email is
@@ -35,7 +39,7 @@ Query MongoDB Data
3539

3640
<QuerySet [<Viewer: Khal Drogo>]>
3741

38-
.. step:: Query the movies collection for runtime values
42+
.. step:: Query the "movies' collection for specified runtime values
3943

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Write Data to MongoDB
122122
database by visiting the http://127.0.0.1:8000/sample_mflix/viewers_list/
123123
URL. You should see a list of ten viewer names in the ``sample_mflix.users``
124124
database, with your new viewer listed at the top. Ensure that the
125-
viewer named "Alliser Thorne", deleted in the previous step, does not appear
125+
viewer named "Alliser Thorne", deleted in a previous step, does not appear
126126
in this list.
127127

128128
After completing these steps, you have inserted and edited documents

0 commit comments

Comments
 (0)