From f6e3bd03ed485af7b0fdf4601ec56f4c446550e0 Mon Sep 17 00:00:00 2001 From: Real Python Bot Date: Thu, 24 Sep 2026 14:00:32 +0000 Subject: [PATCH 1/2] Sync celery-async-tasks with the updated tutorial Bump the pinned requirements in source_code_initial and source_code_final to the versions the updated tutorial installs and was tested with: Django 6.1.1, Celery 5.6.3, and redis-py 8.1.0 on Python 3.14.7. Co-Authored-By: Claude Opus 5.5 (1M context) --- .../source_code_final/requirements.txt | 33 ++++++++++--------- .../source_code_initial/requirements.txt | 33 ++++++++++--------- 2 files changed, 36 insertions(+), 30 deletions(-) diff --git a/celery-async-tasks/source_code_final/requirements.txt b/celery-async-tasks/source_code_final/requirements.txt index 55274c7b99..9a609984eb 100644 --- a/celery-async-tasks/source_code_final/requirements.txt +++ b/celery-async-tasks/source_code_final/requirements.txt @@ -1,18 +1,21 @@ -amqp==5.3.1 -asgiref==3.8.1 -billiard==4.2.1 -celery==5.4.0 -click==8.1.7 +amqp==5.4.0 +asgiref==3.12.1 +billiard==4.3.0 +celery==5.6.3 +click==8.5.0 click-didyoumean==0.3.1 -click-plugins==1.1.1 -click-repl==0.3.0 -Django==5.1.3 -kombu==5.4.2 -prompt_toolkit==3.0.48 +click-plugins==1.1.1.2 +click-repl==0.4.0 +Django==6.1.1 +kombu==5.6.2 +packaging==26.3 +prompt_toolkit==3.0.53 python-dateutil==2.9.0.post0 -redis==5.2.0 -six==1.16.0 -sqlparse==0.5.2 -tzdata==2024.2 +redis==8.1.0 +six==1.17.0 +sqlparse==0.6.0 +typing_extensions==4.16.0 +tzdata==2026.4 +tzlocal==5.4.4 vine==5.1.0 -wcwidth==0.2.13 +wcwidth==0.9.1 diff --git a/celery-async-tasks/source_code_initial/requirements.txt b/celery-async-tasks/source_code_initial/requirements.txt index 55274c7b99..9a609984eb 100644 --- a/celery-async-tasks/source_code_initial/requirements.txt +++ b/celery-async-tasks/source_code_initial/requirements.txt @@ -1,18 +1,21 @@ -amqp==5.3.1 -asgiref==3.8.1 -billiard==4.2.1 -celery==5.4.0 -click==8.1.7 +amqp==5.4.0 +asgiref==3.12.1 +billiard==4.3.0 +celery==5.6.3 +click==8.5.0 click-didyoumean==0.3.1 -click-plugins==1.1.1 -click-repl==0.3.0 -Django==5.1.3 -kombu==5.4.2 -prompt_toolkit==3.0.48 +click-plugins==1.1.1.2 +click-repl==0.4.0 +Django==6.1.1 +kombu==5.6.2 +packaging==26.3 +prompt_toolkit==3.0.53 python-dateutil==2.9.0.post0 -redis==5.2.0 -six==1.16.0 -sqlparse==0.5.2 -tzdata==2024.2 +redis==8.1.0 +six==1.17.0 +sqlparse==0.6.0 +typing_extensions==4.16.0 +tzdata==2026.4 +tzlocal==5.4.4 vine==5.1.0 -wcwidth==0.2.13 +wcwidth==0.9.1 From 8e75173d9ad6b7f75812f17e6779b4d3d6632f6f Mon Sep 17 00:00:00 2001 From: Real Python Bot Date: Thu, 24 Sep 2026 14:02:18 +0000 Subject: [PATCH 2/2] Add Linux setup to the celery-async-tasks README Cover the apt install for Redis next to Homebrew, note the Python 3.12+ requirement from Django 6.1 and the lack of Windows support, and spell out the http:// URL for the dev server. Co-Authored-By: Claude Opus 5.5 (1M context) --- celery-async-tasks/README.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/celery-async-tasks/README.md b/celery-async-tasks/README.md index 754ffcee1d..0a414938b0 100644 --- a/celery-async-tasks/README.md +++ b/celery-async-tasks/README.md @@ -3,9 +3,11 @@ Example project for integrating Celery and Redis into a Django application. 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. -## Setup (macOS) +## Setup -To try the project, set up a virtual environment and install the listed dependencies: +The project targets Linux and macOS. Celery doesn't support Windows. + +To try the project, set up a virtual environment with Python 3.12 or newer and install the listed dependencies: ```sh $ python -m venv venv @@ -13,7 +15,16 @@ $ source venv/bin/activate (venv) $ python -m pip install -r requirements.txt ``` -You'll also need to install Redis on your system: +You'll also need to install Redis on your system. + +On Linux (Debian or Ubuntu): + +```sh +$ sudo apt update +$ sudo apt install redis +``` + +On macOS with [Homebrew](https://brew.sh/): ```sh $ brew install redis @@ -46,4 +57,4 @@ $ redis-server (venv) $ python -m celery -A django_celery worker -l info ``` -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. +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.