You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: {{cookiecutter.project_slug}}/README.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -22,27 +22,27 @@ Moved to [settings](https://cookiecutter-django.readthedocs.io/en/latest/1-getti
22
22
23
23
- To create a **superuser account**, use this command:
24
24
25
-
$ python manage.py createsuperuser
25
+
$ uv run python manage.py createsuperuser
26
26
27
27
For convenience, you can keep your normal user logged in on Chrome and your superuser logged in on Firefox (or similar), so that you can see how the site behaves for both kinds of users.
28
28
29
29
### Type checks
30
30
31
31
Running type checks with mypy:
32
32
33
-
$ mypy {{cookiecutter.project_slug}}
33
+
$ uv run mypy {{cookiecutter.project_slug}}
34
34
35
35
### Test coverage
36
36
37
37
To run the tests, check your test coverage, and generate an HTML coverage report:
38
38
39
-
$ coverage run -m pytest
40
-
$ coverage html
41
-
$ open htmlcov/index.html
39
+
$ uv run coverage run -m pytest
40
+
$ uv run coverage html
41
+
$ uv run open htmlcov/index.html
42
42
43
43
#### Running tests with pytest
44
44
45
-
$ pytest
45
+
$ uv run pytest
46
46
47
47
### Live reloading and Sass CSS compilation
48
48
@@ -58,7 +58,7 @@ To run a celery worker:
58
58
59
59
```bash
60
60
cd {{cookiecutter.project_slug}}
61
-
celery -A config.celery_app worker -l info
61
+
uv run celery -A config.celery_app worker -l info
62
62
```
63
63
64
64
Please note: For Celery's import magic to work, it is important _where_ the celery commands are run. If you are in the same folder with _manage.py_, you should be right.
@@ -67,14 +67,14 @@ To run [periodic tasks](https://docs.celeryq.dev/en/stable/userguide/periodic-ta
67
67
68
68
```bash
69
69
cd {{cookiecutter.project_slug}}
70
-
celery -A config.celery_app beat
70
+
uv run celery -A config.celery_app beat
71
71
```
72
72
73
73
or you can embed the beat service inside a worker with the `-B` option (not recommended for production use):
74
74
75
75
```bash
76
76
cd {{cookiecutter.project_slug}}
77
-
celery -A config.celery_app worker -B -l info
77
+
uv run celery -A config.celery_app worker -B -l info
0 commit comments