1
BROKER_URL = ‘redis://localhost:6379’
CELERY_RESULT_BACKEND = ‘redis://localhost:6379’
The above implies that both redis and celery are running on localhost, the same machine on which your django app is running.
Please check:
1) Redis is installed on the server, and is running. (sudo service redis-server start)
2) Celery is installed on the server, and is running.
BROKER_URL = ‘redis://redis:6379’
CELERY_RESULT_BACKEND = ‘redis://redis:6379’
If you are using docker, the above implies that there is another docker container which is running redis, and your code container is linked to the redis container with the alias ‘redis’
Source:stackexchange.com