File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,7 @@ root directory:
16
16
After entering the Python shell, ensure that you import the following models and
17
17
modules:
18
18
19
- .. code-block :: python
20
-
21
- | model- imports|
22
- from {+ framework+ }.utils import timezone
23
- from datetime import datetime
19
+ |model-imports |
24
20
25
21
To learn how to create a {+framework+} application that uses the ``Movie ``
26
22
model and the Python interactive shell to interact with MongoDB documents,
Original file line number Diff line number Diff line change @@ -70,7 +70,11 @@ The ``Movie`` model class has the following definition:
70
70
71
71
.. replacement:: model-imports
72
72
73
- from <your application name>.models import Movie
73
+ .. code-block:: python
74
+
75
+ from <your application name>.models import Movie
76
+ from {+framework+}.utils import timezone
77
+ from datetime import datetime
74
78
75
79
.. _django-crud-insert:
76
80
You can’t perform that action at this time.
0 commit comments