Skip to content

Commit bc437aa

Browse files
committed
PYTHON-4802 Create Django project & app templates
- Update readme
1 parent 64890ad commit bc437aa

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,23 @@ And whenever you run `python manage.py startapp`, you must remove the line:
9191

9292
from the new application's `apps.py` file.
9393

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+
94111
## Notes on Django QuerySets
95112

96113
* `QuerySet.explain()` supports the [`comment` and `verbosity` options](

0 commit comments

Comments
 (0)