File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,23 @@ And whenever you run `python manage.py startapp`, you must remove the line:
91
91
92
92
from the new application's ` apps.py ` file.
93
93
94
+ ### Templates for ` startproject ` and ` startapp `
95
+
96
+ To automate the process of creating a new Django project or app that uses django-mongodb as described above,
97
+ you can use the following templates:
98
+
99
+ #### ` startproject ` template
100
+
101
+ ``` bash
102
+ $ django-admin startproject my_site --template https://github.com/aclark4life/django-mongodb-project/archive/refs/heads/5.0.x.zip
103
+ ```
104
+
105
+ #### ` startapp ` template
106
+
107
+ ``` bash
108
+ $ django-admin startapp polls --template https://github.com/aclark4life/django-mongodb-app/archive/refs/heads/5.0.x.zip
109
+ ```
110
+
94
111
## Notes on Django QuerySets
95
112
96
113
* ` QuerySet.explain() ` supports the [ ` comment ` and ` verbosity ` options] (
You can’t perform that action at this time.
0 commit comments