Skip to content

Commit ef0d8f8

Browse files
author
Janek Mangold
committed
feat: add drf apps to INSTALLED_APPS, update readme, add .env to .gitignore
1 parent 2ebd2ad commit ef0d8f8

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

django/{{ cookiecutter.project_slug }}/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.idea/
2+
.env
23
.env.*
34
!.env.example
45
.venv

django/{{ cookiecutter.project_slug }}/README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,24 @@
2929
```bash
3030
git init --initial-branch=main
3131
```
32-
3. Enable pre-commit hooks:
32+
33+
3. Create a venv and install dependencies:
34+
35+
```bash
36+
uv venv
37+
source .venv/bin/activate
38+
uv sync
39+
```
40+
41+
4. Enable pre-commit hooks:
3342

3443
```bash
3544
pre-commit install
3645
```
3746

38-
4. Delete this section
47+
5. **Delete this section, because its only for the initial setup**
3948

40-
5. Create an initial commit and push to the remote repository:
49+
6. Create an initial commit and push to the remote repository:
4150

4251
```bash
4352
git add .

django/{{ cookiecutter.project_slug }}/{{ cookiecutter.project_slug }}/settings/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
"django.contrib.sessions",
3535
"django.contrib.messages",
3636
"django.contrib.staticfiles",
37+
{% if cookiecutter.use_drf %}
38+
"rest_framework",
39+
"drf_spectacular",
40+
{% endif}
3741
]
3842

3943
# Security

0 commit comments

Comments
 (0)