Skip to content

Commit e071a07

Browse files
committed
DOCSP-46320: Interact &model landing pages
1 parent 4849198 commit e071a07

File tree

4 files changed

+92
-11
lines changed

4 files changed

+92
-11
lines changed

snooty.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ intersphinx = [ "https://www.mongodb.com/docs/manual/objects.inv",
66
"http://docs.djangoproject.com/en/5.0/_objects/"
77
]
88

9-
# toc_landing_pages = ["/paths/to/pages/that/have/nested/content"]
9+
toc_landing_pages = [
10+
"/model-data",
11+
"/interact-data",
12+
]
1013

1114
[constants]
1215
django-odm = "Django MongoDB Backend"
1316
api = "https://django-mongodb.readthedocs.io/en/latest/"
1417
mdb-server = "MongoDB Server"
1518
django-version = "5.0"
1619
django-docs = "https://docs.djangoproject.com/en/{+django-version+}"
20+
framework = "Django"

source/index.txt

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,17 @@ Django MongoDB Backend
1111

1212
.. toctree::
1313

14+
Model Your Data </model-data>
15+
Interact with Data </interact-data>
1416
Issues & Help </issues-and-help>
1517
Compatibility </compatibility>
1618

1719

1820
.. TODO:
1921
Get Started </get-started>
2022
Connection Configuration </connect>
21-
Interact with Data </interact-data>
22-
Model Your Data </model-data>
23+
24+
2325
Django Feature Limitations </feature-limitations>
2426
API Documentation <{+api+}>
2527

@@ -43,17 +45,17 @@ a Django database backend that uses PyMongo to connect to MongoDB.
4345
.. Learn how to configure a connection to a MongoDB deployment
4446
in the :ref:`django-connection-configuration` section.
4547

46-
.. Interact with Data
47-
.. ------------------
48+
Model Your Data
49+
---------------
4850

49-
.. Learn how to use {+django-odm+} to perform operations on MongoDB data
50-
in the :ref:`django-interact-data` section.
51+
Learn how to create Django models that represent MongoDB collections
52+
in the :ref:`django-model-data` section.
5153

52-
.. Model Your Data
53-
.. ---------------
54+
Interact with Data
55+
------------------
5456

55-
.. Learn how to create Django models that represent MongoDB collections
56-
in the :ref:`django-model-data` section.
57+
Learn how to use {+django-odm+} to perform operations on MongoDB data
58+
in the :ref:`django-interact-data` section.
5759

5860
.. Django Feature Limitations
5961
.. --------------------------

source/interact-data.txt

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
.. _django-interact-data:
2+
3+
==================
4+
Interact with Data
5+
==================
6+
7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 1
11+
:class: singlecol
12+
13+
.. facet::
14+
:name: genre
15+
:values: reference
16+
17+
.. meta::
18+
:description: Learn how to use Django MongoDB Backend to interact with MongoDB data.
19+
:keywords: odm, crud, query
20+
21+
.. toctree::
22+
:caption: Interact with Data
23+
24+
.. TODO:
25+
CRUD Operations </interact-data/crud>
26+
Specify a Query </interact-data/specify-a-query>
27+
Perform Raw Queries </interact-data/raw-queries>
28+
29+
In this section, you can learn how to use {+django-odm+} to interact with your
30+
MongoDB data.
31+
32+
- :ref:`django-crud`: Learn how to perform create, read, update, and delete
33+
operations on your data.
34+
35+
- :ref:`django-specify-query`: Learn how to perform complex read operations on
36+
your data.
37+
38+
- :ref:`django-raw-queries`: Learn how to use MongoDB's aggregation pipeline syntax
39+
or the PyMongo driver to query your data.

source/model-data.txt

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
.. _django-model-data:
2+
3+
===============
4+
Model Your Data
5+
===============
6+
7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 1
11+
:class: singlecol
12+
13+
.. facet::
14+
:name: genre
15+
:values: reference
16+
17+
.. meta::
18+
:description: Learn how to use Django MongoDB Backend to model MongoDB data.
19+
:keywords: field, collection, object, model
20+
21+
.. toctree::
22+
:titlesonly:
23+
:maxdepth: 1
24+
25+
.. TODO:
26+
Create Models </model-data/models>
27+
Create Indexes </model-data/models>
28+
29+
In this section, you can learn how to create and customize
30+
your Django models for use with MongoDB.
31+
32+
- :ref:`django-models`: Learn how to create models by using supported field
33+
types and Django's model configuration features.
34+
35+
- :ref:`django-indexes`: Learn how to create indexes by modifying your
36+
model classes.

0 commit comments

Comments
 (0)