রেজাল্ট শুধু ডাটাবেজে সেভ করতে হলে:
যদি রেজাল্ট ডেটাবেজ এ সেভ করতে চাই
pip install django-celery-resultsConfigure Django settings for Celery Results settings.py
# settings.py
INSTALLED_APPS = [
'django_celery_results',
]
# Celery configuration
CELERY_RESULT_BACKEND = 'django-db'
রেডিস ব্যবহারের সুবিধা:
যদি রেজাল্ট Redis এ সেভ করতে চাই
CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
Redis as broker
download redis and install in windows or your operating system
pip install --upgrade redis# Celery configuration
CELERY_BROKER_URL = 'redis://localhost:6379/0' # Use the URL of your message broker (e.g., Redis)Apply migrations
python manage.py migrate