File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed
source/django-get-started Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ Configure your MongoDB Connection
63
63
DATABASES = {
64
64
"default": {
65
65
"ENGINE": "django_mongodb",
66
- "NAME": "db ",
66
+ "NAME": "sample_mflix ",
67
67
"USER": "<username>",
68
68
"PASSWORD": "<password>",
69
69
"HOST": "<connection string URI>",
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ Create an Application
97
97
.. step:: Configure URLs for your views
98
98
99
99
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
101
101
code into ``urls.py``:
102
102
103
103
.. code-block:: python
Original file line number Diff line number Diff line change @@ -70,6 +70,21 @@ Write Data to MongoDB
70
70
71
71
user.save()
72
72
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
+
73
88
.. step:: Render your new models
74
89
75
90
To ensure that your ``Movies`` model was inserted into the database,
You can’t perform that action at this time.
0 commit comments