Skip to content

Commit 1986472

Browse files
committed
edits
1 parent a41d3e4 commit 1986472

File tree

4 files changed

+43
-25
lines changed

4 files changed

+43
-25
lines changed

Diff for: docs/source/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"https://docs.djangoproject.com/en/5.1/",
4242
"https://docs.djangoproject.com/en/5.1/_objects/",
4343
),
44+
"mongodb": ("https://www.mongodb.com/docs/languages/python/django-mongodb/v5.1/", None),
4445
"pymongo": ("https://pymongo.readthedocs.io/en/stable/", None),
4546
"python": ("https://docs.python.org/3/", None),
4647
}

Diff for: docs/source/intro/configure.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,10 @@ For a localhost configuration, you can omit :setting:`HOST` or specify
134134
:setting:`OPTIONS` is an optional dictionary of parameters that will be passed
135135
to :class:`~pymongo.mongo_client.MongoClient`.
136136

137-
:setting:`USER`, :setting:`PASSWORD`, and :setting:`PORT` (if 27017) may also
138-
be optional.
137+
Specify :setting:`USER` and :setting:`PASSWORD` if your database requires
138+
authentication.
139+
140+
:setting:`PORT` is optional if unchanged from MongoDB's default of 27017.
139141

140142
For a replica set or sharded cluster where you have multiple hosts, include
141143
all of them in :setting:`HOST`, e.g.

Diff for: docs/source/intro/index.rst

+8-3
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@ to quickly get up and running.
1414
.. seealso::
1515

1616
If you're new to Django_, you might want to start by getting an idea of
17-
what it's like. The :doc:`official Django tutorial
18-
<django:intro/tutorial01>` is a great place to start. Once you understand
19-
some Django basics, come back here and learn how to use it with MongoDB.
17+
what it's like.
18+
19+
For a tutorial that covers using this library with MongoDB Atlas (a fully
20+
managed cloud database service that hosts MongoDB), read
21+
:doc:`mongodb:get-started`.
22+
23+
Another excellent tutorial that covers Django in more detail is the
24+
:doc:`official Django tutorial <django:intro/tutorial01>`.
2025

2126
.. _Django: https://www.djangoproject.org/

Diff for: docs/source/topics/known-issues.rst

+30-20
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ Known issues and limitations
33
============================
44

55
This document summarizes some known issues and limitations of this library.
6+
If you notice an issue not listed, use the :ref:`issue-tracker` to report a bug
7+
or request a feature.
68

79
Like any database, MongoDB has some particularities. Also keep in mind that
810
because MongoDB is a NoSQL database, it's impossible to implement SQL-specific
@@ -16,6 +18,13 @@ Model fields
1618
:class:`~django.db.models.DurationField` stores milliseconds rather than
1719
microseconds.
1820

21+
- Some of Django's built-in fields aren't supported by MongoDB:
22+
23+
- :class:`~django.db.models.AutoField` (including
24+
:class:`~django.db.models.BigAutoField` and
25+
:class:`~django.db.models.SmallAutoField`)
26+
- :class:`~django.db.models.GeneratedField`
27+
1928
Querying
2029
========
2130

@@ -47,23 +56,24 @@ Querying
4756
Database functions
4857
==================
4958

50-
- The following database functions aren't supported:
51-
- :class:`~django.db.models.functions.Chr`
52-
- :class:`~django.db.models.functions.ExtractQuarter`
53-
- :class:`~django.db.models.functions.LPad`,
54-
:class:`~django.db.models.functions.RPad`
55-
- :class:`~django.db.models.functions.MD5`
56-
- :class:`~django.db.models.functions.Now`
57-
- :class:`~django.db.models.functions.Ord`
58-
- :class:`~django.db.models.functions.Repeat`
59-
- :class:`~django.db.models.functions.Reverse`
60-
- :class:`~django.db.models.functions.Right`
61-
- :class:`~django.db.models.functions.SHA1`,
62-
:class:`~django.db.models.functions.SHA224`,
63-
:class:`~django.db.models.functions.SHA256`,
64-
:class:`~django.db.models.functions.SHA384`,
65-
:class:`~django.db.models.functions.SHA512`
66-
- :class:`~django.db.models.functions.Sign`
59+
- Some of Django's built-in database functions aren't supported by MongoDB:
60+
61+
- :class:`~django.db.models.functions.Chr`
62+
- :class:`~django.db.models.functions.ExtractQuarter`
63+
- :class:`~django.db.models.functions.LPad`,
64+
:class:`~django.db.models.functions.RPad`
65+
- :class:`~django.db.models.functions.MD5`
66+
- :class:`~django.db.models.functions.Now`
67+
- :class:`~django.db.models.functions.Ord`
68+
- :class:`~django.db.models.functions.Repeat`
69+
- :class:`~django.db.models.functions.Reverse`
70+
- :class:`~django.db.models.functions.Right`
71+
- :class:`~django.db.models.functions.SHA1`,
72+
:class:`~django.db.models.functions.SHA224`,
73+
:class:`~django.db.models.functions.SHA256`,
74+
:class:`~django.db.models.functions.SHA384`,
75+
:class:`~django.db.models.functions.SHA512`
76+
- :class:`~django.db.models.functions.Sign`
6777

6878
- The ``tzinfo`` parameter of the :class:`~django.db.models.functions.Trunc`
6979
database functions doesn't work properly because MongoDB converts the result
@@ -87,6 +97,6 @@ Due to the lack of ability to introspect MongoDB collection schema,
8797
Caching
8898
=======
8999

90-
:ref:`Database caching <database-caching>` is not supported since the built-in database cache backend
91-
requires SQL. A custom cache backend for MongoDB will be provided in the
92-
future.
100+
:ref:`Database caching <database-caching>` is not supported since the built-in
101+
database cache backend requires SQL. A custom cache backend for MongoDB will be
102+
provided in the future.

0 commit comments

Comments
 (0)