Skip to content

Commit ca7c6e7

Browse files
authored
DOCSP-46866: Cleanup (#14)
* DOCSP-46866: Cleanup * test intersphinx * link * test * another test * maybe * remove second link * snooty * go back * remove link * didn't work * more cleanup * try link again * more api links * links * test * another test * another * try * links * test * links * fixes * tests * links * edits * fix * jib feedback * monospace * imagefield * RM feedback * small edits * award class fix * wording * fix link * adjust code highlight
1 parent 2b67495 commit ca7c6e7

25 files changed

+115
-124
lines changed

snooty.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title = "Django MongoDB Backend"
33

44
intersphinx = [ "https://www.mongodb.com/docs/manual/objects.inv",
55
"https://www.mongodb.com/docs/atlas/objects.inv",
6-
"http://docs.djangoproject.com/en/5.0/_objects/"
6+
"http://docs.djangoproject.com/en/5.0/_objects",
77
]
88

99
toc_landing_pages = [

source/compatibility.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ MongoDB Compatibility
2323
{+django-odm+} uses the PyMongo driver to interact with MongoDB. The {+mdb-server+}
2424
versions that your application supports depend on your PyMongo version.
2525
To view PyMongo and {+mdb-server+} compatibility information, see `MongoDB Compatibility
26-
<https://www.mongodb.com/docs/languages/python/pymongo-driver/current/compatibility/#mongodb-compatibility>`__
26+
<{+pymongo-docs+}/compatibility/#mongodb-compatibility>`__
2727
in the PyMongo documentation.
2828

2929
PyMongo Compatibility

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 {+django-odm+}.
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/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-admin.txt

Lines changed: 6 additions & 6 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
16-
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.
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
16+
site and its features, see `The Django admin site <{+django-docs+}/ref/contrib/admin/>`__
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/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/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

0 commit comments

Comments
 (0)