Skip to content

Commit 7bf9018

Browse files
committed
connection string
1 parent 58b3541 commit 7bf9018

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/django-get-started/django-connection-string.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ To connect to an instance or deployment not hosted on Atlas, see
5050
Your connection string resembles the following example:
5151

5252
.. code-block:: none
53+
:copyable: false
5354

54-
mongodb+srv://<username>:<password>@cluster0.example.mongodb.net/?retryWrites=true&w=majority
55+
mongodb+srv://<username>:<password>@samplecluster.jkiff1s.mongodb.net/?retryWrites=true&w=majority&appName=SampleCluster
5556

5657

5758
Replace the ``<username>`` and ``<password>`` placeholders with
@@ -62,8 +63,9 @@ To connect to an instance or deployment not hosted on Atlas, see
6263
the following example:
6364

6465
.. code-block:: none
66+
:copyable: false
6567

66-
mongodb+srv://<username>:<password>@cluster0.example.mongodb.net/sample_mflix?retryWrites=true&w=majority
68+
mongodb+srv://<username>:<password>@samplecluster.jkiff1s.mongodb.net/sample_mflix?retryWrites=true&w=majority&appName=SampleCluster
6769

6870
After completing these steps, you have a connection string that
6971
contains your database username, database password, and database name.

0 commit comments

Comments
 (0)