From d6caf01a38d719fd23e560698477bb02cc39ba5b Mon Sep 17 00:00:00 2001 From: Kian Cross Date: Tue, 22 Aug 2023 09:44:11 +0100 Subject: [PATCH] Add warning about configuration of Celery in development mode to docs (#3525) --- doc/development/setup.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/development/setup.rst b/doc/development/setup.rst index 33646ae4b9..f4f04c0abd 100644 --- a/doc/development/setup.rst +++ b/doc/development/setup.rst @@ -96,6 +96,20 @@ http://localhost:8000/control/ for the admin view. port (for example because you develop on `pretixdroid`_), you can check `Django's documentation`_ for more options. +When running the local development webserver, ensure Celery is not configured +in ``pretix.cfg``. i.e., you should remove anything such as:: + + [celery] + backend=redis://redis:6379/2 + broker=redis://redis:6379/2 + +If you choose to use Celery for development, you must also start a Celery worker +process:: + + celery -A pretix.celery_app worker -l info + +However, beware that code changes will not auto-reload within Celery. + .. _`checksandtests`: Code checks and unit tests