Skip to content

Commit c3bf2f0

Browse files
Merge pull request #861 from realpython/maintenance/asynchronous-tasks-with-django-and-celery-20260924
Sync celery-async-tasks with the updated tutorial
2 parents b20e04a + 8e75173 commit c3bf2f0

3 files changed

Lines changed: 51 additions & 34 deletions

File tree

‎celery-async-tasks/README.md‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,28 @@
33
Example project for integrating Celery and Redis into a Django application.
44
This repository holds the code for the Real Python [Asynchronous Tasks With Django and Celery](https://realpython.com/asynchronous-tasks-with-django-and-celery/) tutorial.
55

6-
## Setup (macOS)
6+
## Setup
77

8-
To try the project, set up a virtual environment and install the listed dependencies:
8+
The project targets Linux and macOS. Celery doesn't support Windows.
9+
10+
To try the project, set up a virtual environment with Python 3.12 or newer and install the listed dependencies:
911

1012
```sh
1113
$ python -m venv venv
1214
$ source venv/bin/activate
1315
(venv) $ python -m pip install -r requirements.txt
1416
```
1517

16-
You'll also need to install Redis on your system:
18+
You'll also need to install Redis on your system.
19+
20+
On Linux (Debian or Ubuntu):
21+
22+
```sh
23+
$ sudo apt update
24+
$ sudo apt install redis
25+
```
26+
27+
On macOS with [Homebrew](https://brew.sh/):
1728

1829
```sh
1930
$ brew install redis
@@ -46,4 +57,4 @@ $ redis-server
4657
(venv) $ python -m celery -A django_celery worker -l info
4758
```
4859

49-
When all three processes are running, you can go to `localhost:8000/` and submit a feedback response. Celery will simulate a work-intensive process and send an email at the end of it. You'll see the email message show up in the log stream on the terminal window where the Celery worker is running.
60+
When all three processes are running, you can go to `http://localhost:8000/` and submit a feedback response. Celery will simulate a work-intensive process and send an email at the end of it. You'll see the email message show up in the log stream on the terminal window where the Celery worker is running.
Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
amqp==5.3.1
2-
asgiref==3.8.1
3-
billiard==4.2.1
4-
celery==5.4.0
5-
click==8.1.7
1+
amqp==5.4.0
2+
asgiref==3.12.1
3+
billiard==4.3.0
4+
celery==5.6.3
5+
click==8.5.0
66
click-didyoumean==0.3.1
7-
click-plugins==1.1.1
8-
click-repl==0.3.0
9-
Django==5.1.3
10-
kombu==5.4.2
11-
prompt_toolkit==3.0.48
7+
click-plugins==1.1.1.2
8+
click-repl==0.4.0
9+
Django==6.1.1
10+
kombu==5.6.2
11+
packaging==26.3
12+
prompt_toolkit==3.0.53
1213
python-dateutil==2.9.0.post0
13-
redis==5.2.0
14-
six==1.16.0
15-
sqlparse==0.5.2
16-
tzdata==2024.2
14+
redis==8.1.0
15+
six==1.17.0
16+
sqlparse==0.6.0
17+
typing_extensions==4.16.0
18+
tzdata==2026.4
19+
tzlocal==5.4.4
1720
vine==5.1.0
18-
wcwidth==0.2.13
21+
wcwidth==0.9.1
Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
amqp==5.3.1
2-
asgiref==3.8.1
3-
billiard==4.2.1
4-
celery==5.4.0
5-
click==8.1.7
1+
amqp==5.4.0
2+
asgiref==3.12.1
3+
billiard==4.3.0
4+
celery==5.6.3
5+
click==8.5.0
66
click-didyoumean==0.3.1
7-
click-plugins==1.1.1
8-
click-repl==0.3.0
9-
Django==5.1.3
10-
kombu==5.4.2
11-
prompt_toolkit==3.0.48
7+
click-plugins==1.1.1.2
8+
click-repl==0.4.0
9+
Django==6.1.1
10+
kombu==5.6.2
11+
packaging==26.3
12+
prompt_toolkit==3.0.53
1213
python-dateutil==2.9.0.post0
13-
redis==5.2.0
14-
six==1.16.0
15-
sqlparse==0.5.2
16-
tzdata==2024.2
14+
redis==8.1.0
15+
six==1.17.0
16+
sqlparse==0.6.0
17+
typing_extensions==4.16.0
18+
tzdata==2026.4
19+
tzlocal==5.4.4
1720
vine==5.1.0
18-
wcwidth==0.2.13
21+
wcwidth==0.9.1

0 commit comments

Comments
 (0)