Skip to content

Commit b6e726d

Browse files
committed
DOCSP-46866: Cleanup
1 parent 207d726 commit b6e726d

File tree

13 files changed

+50
-49
lines changed

13 files changed

+50
-49
lines changed

source/connect.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,11 @@ function accepts the following arguments:
148148
- ``conn_max_age``: Configures persistent database connections.
149149
This argument is optional. To learn more, see
150150
`Persistent connections <{+django-docs+}/ref/databases/#persistent-database-connections>`__
151-
in the Django documentation.
151+
in the {+framework+} documentation.
152152
- ``test``: Provides a dictionary of settings for test
153153
databases. This argument is optional. To learn more, see
154154
`the TEST setting <{+django-docs+}/ref/settings/#test>`__
155-
in the Django documentation.
155+
in the {+framework+} documentation.
156156

157157
Example
158158
```````
@@ -175,5 +175,5 @@ To view a sample project that configures a MongoDB database connection,
175175
see the :ref:`django-get-started-connect` step in the Getting Started
176176
tutorial.
177177

178-
To learn more about Django settings, see `Settings <{+django-docs+}/ref/settings/>`__
179-
in the Django documentation.
178+
To learn more about {+framework+} settings, see `Settings <{+django-docs+}/ref/settings/>`__
179+
in the {+framework+} documentation.

source/get-started.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Get Started with {+django-odm+}
1515
:values: tutorial
1616

1717
.. meta::
18-
:description: Learn how to create an app to connect to a MongoDB deployment by using Django MongoDB Backend.
18+
:description: Learn how to create an app to connect to a MongoDB deployment by using {+framework+} MongoDB Backend.
1919
:keywords: quick start, tutorial, basics
2020

2121
.. toctree::
@@ -30,8 +30,8 @@ Get Started with {+django-odm+}
3030
Create an Admin Site </get-started/create-admin/>
3131
Next Steps </get-started/next-steps/>
3232

33-
{+django-odm+} is a Django database backend that uses PyMongo to connect
34-
to MongoDB. This tutorial shows you how to create a Django app, connect to
33+
{+django-odm+} is a {+framework+} database backend that uses PyMongo to connect
34+
to MongoDB. This tutorial shows you how to create a {+framework+} app, connect to
3535
a MongoDB cluster hosted on MongoDB Atlas, and interact with data in your cluster.
3636

3737
.. tip::
@@ -40,5 +40,5 @@ a MongoDB cluster hosted on MongoDB Atlas, and interact with data in your cluste
4040
deployments. You can create your own free (no credit card required) MongoDB Atlas
4141
deployment by following the steps in this guide.
4242

43-
Follow this tutorial to connect a sample Django application to a MongoDB Atlas
43+
Follow this tutorial to connect a sample {+framework+} application to a MongoDB Atlas
4444
deployment.

source/get-started/connect-mongodb.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ Configure your MongoDB Connection
1212
:keywords: app, odm, code example
1313

1414
After installing {+django-odm+} and creating a MongoDB Atlas deployment,
15-
you can create a Django project that connects to MongoDB.
15+
you can create a {+framework+} project that connects to MongoDB.
1616

1717
.. procedure::
1818
:style: connected
1919

20-
.. step:: Create a Django project
20+
.. step:: Create a {+framework+} project
2121

2222
From your shell, run the following command to create a
2323
new Django project called ``quickstart`` based on a custom template:
@@ -28,11 +28,11 @@ you can create a Django project that connects to MongoDB.
2828

2929
.. note:: Project Template
3030

31-
The ``django-mongodb-project`` template resembles the default Django project
31+
The ``django-mongodb-project`` template resembles the default {+framework+} project
3232
template but makes the following changes:
3333

3434
- Includes MongoDB-specific migrations
35-
- Modifies the ``settings.py`` file to instruct Django
35+
- Modifies the ``settings.py`` file to instruct {+framework+}
3636
to use an ``ObjectId`` value as each model's primary key
3737

3838
After running this command, your ``quickstart`` project has
@@ -69,7 +69,7 @@ you can create a Django project that connects to MongoDB.
6969

7070
Replace the ``<connection string URI>`` placeholder with the connection string
7171
that you copied from the :ref:`django-get-started-connection-string`
72-
step of this guide. This configures your Django app to connect to
72+
step of this guide. This configures your {+framework+} app to connect to
7373
your Atlas deployment and access the ``sample_mflix`` sample database.
7474

7575
.. step:: Start the server
@@ -84,5 +84,5 @@ you can create a Django project that connects to MongoDB.
8484
Then, visit http://127.0.0.1:8000/. This page displays a "Congratulations!"
8585
message and an image of a rocket.
8686

87-
After completing these steps, you have a Django project configured
87+
After completing these steps, you have a {+framework+} project configured
8888
to use MongoDB.

source/get-started/create-admin.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ Create an Admin Site
1111
.. meta::
1212
:keywords: app, odm, code example
1313

14-
You can create a Django admin site to edit your application's
15-
data from a web interface. To learn more about the Django admin
14+
You can create a {+framework+} admin site to edit your application's
15+
data from a web interface. To learn more about the {+framework+} admin
1616
site and its features, see `The Django admin site <https://docs.djangoproject.com/en/{+django-version-number+}/ref/contrib/admin/>`__
17-
in the Django documentation.
17+
in the {+framework+} documentation.
1818

1919
.. procedure::
2020
:style: connected
@@ -59,7 +59,7 @@ in the Django documentation.
5959
screen:
6060

6161
.. figure:: /includes/figures/django_admin_login.png
62-
:alt: The login screen on the Django admin page.
62+
:alt: The login screen on the {+framework+} admin page.
6363

6464
Enter the username and password created in the previous step to log in to
6565
the site.
@@ -126,5 +126,5 @@ in the Django documentation.
126126
Then, click the :guilabel:`SAVE` button below the viewer's
127127
information to save your changes.
128128

129-
After completing these steps, you can access the Django
129+
After completing these steps, you can access the {+framework+}
130130
admin site and use it to edit your ``Viewer`` objects.

source/get-started/install.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ in your development environment.
6363
This command also installs the following dependencies:
6464

6565
- PyMongo version {+pymongo-version+} and its dependencies
66-
- Latest Django {+django-version+}.x version and its dependencies
66+
- Latest {+framework+} {+django-version+}.x version and its dependencies
6767

6868
After you complete these steps, you have {+django-odm+} and its
6969
dependencies installed in your development environment.

source/get-started/next-steps.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Next Steps
66

77
Congratulations on completing the {+django-odm+} tutorial!
88

9-
In this tutorial, you created a Django application that
9+
In this tutorial, you created a {+framework+} application that
1010
connects to a MongoDB deployment hosted on MongoDB Atlas
1111
and interacts with data.
1212

source/index.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Introduction
3232
------------
3333

3434
Welcome to the documentation site for the official {+django-odm+},
35-
a Django database backend that uses PyMongo to connect to MongoDB.
35+
a {+framework+} database backend that uses PyMongo to connect to MongoDB.
3636

3737
Get Started
3838
-----------
@@ -49,7 +49,7 @@ in the :ref:`django-connection-configuration` section.
4949
Model Your Data
5050
---------------
5151

52-
Learn how to create Django models that represent MongoDB collections
52+
Learn how to create {+framework+} models that represent MongoDB collections
5353
in the :ref:`django-model-data` section.
5454

5555
Interact with Data

source/interact-data/crud.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ and deletes documents that have a ``runtime`` value of ``5``:
275275
Additional Information
276276
----------------------
277277

278-
.. TODO: To learn more about performing read operations, see the Specify a Query guide.
278+
To learn more about performing read operations, see the :ref:`django-specify-query`
279+
guide.
279280

280281
To view more create, read, update, and delete examples, see the following
281282
steps of the :ref:`django-get-started` tutorial:

source/interact-data/raw-queries.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,30 +23,30 @@ Overview
2323
In this guide, you can learn how to use {+django-odm+} to run
2424
raw queries on your MongoDB database. Raw queries allow you to
2525
query the database by using MongoDB's aggregation pipeline syntax
26-
rather than Django methods. You can also run queries directly
26+
rather than {+framework+} methods. You can also run queries directly
2727
on your ``MongoClient`` object for expanded access to your MongoDB data.
2828

2929
Query API
3030
~~~~~~~~~
3131

32-
The Django ``QuerySet`` API provides a ``raw()`` method, which allows
32+
The {+framework+} ``QuerySet`` API provides a ``raw()`` method, which allows
3333
you to perform raw SQL queries on relational databases. However, {+django-odm+}
3434
does not support the ``raw()`` method. Instead, the ODM provides the
3535
``raw_aggregate()`` method, which you can use to send instructions
3636
to the database in pipeline stages.
3737

3838
.. note::
3939

40-
Django provides a ``QuerySet.aggregate()`` method, which differs from the
40+
{+framework+} provides a ``QuerySet.aggregate()`` method, which differs from the
4141
``QuerySet.raw_aggregate()`` method. You can use ``aggregate()`` to retrieve
4242
values by aggregating a collection of model objects. To learn more about
4343
the ``aggregate()`` method, see `Aggregation <{+django-docs+}/topics/db/aggregation/>`__
44-
in the Django documentation.
44+
in the {+framework+} documentation.
4545

4646
You can run database queries by calling ``QuerySet`` methods on your model's
4747
``Manager``. The ``Manager`` class handles database operations and allows you
48-
to interact with your MongoDB data by referencing Django models. By default,
49-
Django adds a ``Manager`` named ``objects`` to every model class. This default
48+
to interact with your MongoDB data by referencing {+framework+} models. By default,
49+
{+framework+} adds a ``Manager`` named ``objects`` to every model class. This default
5050
``Manager`` does not support the ``raw_aggregate()`` method. To use this
5151
MongoDB-specific method, set your model's ``objects`` field to a custom
5252
manager called ``MongoManager``.
@@ -57,7 +57,7 @@ Sample Data
5757
The examples in this guide use the ``Movie`` and ``Theater`` models, which
5858
represent collections in the ``sample_mflix`` database from the :atlas:`Atlas sample datasets </sample-data>`.
5959
These models explicitly set the ``objects`` field to use a custom ``MongoManager``,
60-
rather than Django's default ``Manager`` class. The model classes have the following
60+
rather than {+framework+}'s default ``Manager`` class. The model classes have the following
6161
definitions:
6262

6363
.. literalinclude:: /includes/interact-data/raw-queries.py

source/interact-data/specify-a-query.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ method allows you to specify your query criteria in a MongoDB
234234
aggregation pipeline, which you pass as an argument to
235235
``raw_aggregate()``.
236236

237-
.. TODO: To learn how to run raw database queries, see the :ref:`django-raw-queries`
238-
guide.
237+
To learn how to run raw database queries, see the :ref:`django-raw-queries`
238+
guide.
239239

240240
.. _django-query-filter:
241241

0 commit comments

Comments
 (0)