You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,6 @@
1
1
# Django MongoDB Backend
2
2
3
-
Django MongoDB Backend is a [Django]((https://docs.djangoproject.com/)
4
-
database backend that uses [PyMongo](https://www.mongodb.com/docs/languages/python/pymongo-driver/)
5
-
to connect to MongoDB.
3
+
Django MongoDB Backend is a Django database backend that uses [PyMongo](https://www.mongodb.com/docs/languages/python/pymongo-driver/current/) to connect to MongoDB.
6
4
7
5
## Documentation
8
6
@@ -42,12 +40,8 @@ django-admin --version
42
40
43
41
### Connect to the database
44
42
45
-
If you don't already have a MongoDB cluster, see the
46
-
[getting started with Atlas](https://www.mongodb.com/docs/atlas/getting-started/)
47
-
documentation to quickly and easily [deploy a free cluster](https://www.mongodb.com/docs/atlas/tutorial/deploy-free-tier-cluster/).
48
-
49
43
Navigate to your `example/settings.py` file and replace the `DATABASES`
50
-
setting like so:
44
+
setting using your cluster's [connection string](https://www.mongodb.com/docs/manual/reference/connection-string/)like so:
51
45
52
46
```python
53
47
DATABASES= {
@@ -59,6 +53,11 @@ DATABASES = {
59
53
}
60
54
```
61
55
56
+
> [!TIP]
57
+
> You can quickly and easily [deploy a free cluster](https://www.mongodb.com/docs/atlas/tutorial/deploy-free-tier-cluster/) with MongoDB Atlas.
58
+
59
+
If you're hosting your cluster in MongoDB Atlas, see [this tutorial](https://www.mongodb.com/docs/atlas/tutorial/connect-to-your-cluster/#connect-to-your-atlas-cluster) for additional information on retriving your connection string.
60
+
62
61
### Run the server
63
62
64
63
To verify that you correctly configured your project, run the following command
0 commit comments