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
$ uv run uvicorn config.asgi:application --host 0.0.0.0 --reload --reload-include '*.html'
83
73
84
74
If you've opted for Webpack or Gulp as frontend pipeline, please see the :ref:`dedicated section <bare-metal-webpack-gulp>` below.
85
75
@@ -136,7 +126,7 @@ Following this structured approach, here's how to add a new app:
136
126
137
127
#. **Create the app** using Django's ``startapp`` command, replacing ``<name-of-the-app>`` with your desired app name: ::
138
128
139
-
$ python manage.py startapp <name-of-the-app>
129
+
$ uv run python manage.py startapp <name-of-the-app>
140
130
141
131
#. **Move the app** to the Django Project Root, maintaining the project's two-tier structure: ::
142
132
@@ -203,14 +193,14 @@ Next, make sure `redis-server` is installed (per the `Getting started with Redis
203
193
204
194
Start the Celery worker by running the following command in another terminal::
205
195
206
-
$ celery -A config.celery_app worker --loglevel=info
196
+
$ uv run celery -A config.celery_app worker --loglevel=info
207
197
208
198
That Celery worker should be running whenever your app is running, typically as a background process,
209
199
so that it can pick up any tasks that get queued. Learn more from the `Celery Workers Guide`_.
210
200
211
201
The project comes with a simple task for manual testing purposes, inside `<project_slug>/users/tasks.py`. To queue that task locally, start the Django shell, import the task, and call `delay()` on it::
212
202
213
-
$ python manage.py shell
203
+
$ uv run python manage.py shell
214
204
>> from <project_slug>.users.tasks import get_users_count
0 commit comments