Skip to content

Commit 8585730

Browse files
committed
edits
1 parent aa27f12 commit 8585730

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

source/django-get-started/django-connect-mongodb.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Configure your MongoDB Connection
6363
DATABASES = {
6464
"default": {
6565
"ENGINE": "django_mongodb",
66-
"NAME": "db",
66+
"NAME": "sample_mflix",
6767
"USER": "<username>",
6868
"PASSWORD": "<password>",
6969
"HOST": "<connection string URI>",

source/django-get-started/django-create-app.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Create an Application
9797
.. step:: Configure URLs for your views
9898

9999
Create a new file called ``urls.py`` file in your ``sample_mflix`` directory.
100-
To map the views defined in the preceding steps to URLs, paste the following
100+
To map the views defined in the preceding step to URLs, paste the following
101101
code into ``urls.py``:
102102

103103
.. code-block:: python

source/django-get-started/django-write-data.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,21 @@ Write Data to MongoDB
7070

7171
user.save()
7272

73+
.. step:: Start the development server
74+
75+
Exit the Python shell by running the following code:
76+
77+
.. code-block:: python
78+
79+
exit()
80+
81+
Then, start your server by running the following command
82+
from your ``quickstart`` directory:
83+
84+
.. code-block:: bash
85+
86+
python3 manage.py runserver
87+
7388
.. step:: Render your new models
7489

7590
To ensure that your ``Movies`` model was inserted into the database,

0 commit comments

Comments
 (0)