your virtual environments
pip install celery
pip install redis
- check your settings.py
CELERY_BROKER_URL = 'redis://localhost:6379'
CELERY_RESULT_BACKEND = 'redis://localhost:6379'
CELERY_ACCEPT_CONTENT = ['application/json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
CELERY_TIMEZONE = TIME_ZONE
CELERY_IMPORTS = "calculation.task"
in your terminal
redis-server
python manage.py runserver
celery -A project_name worker -l info
example:
celery -A celearyapp worker -l info
then ,
celery -A project_name worker -l info
example:
celery -A celearyapp worker -l info