Bird
0
0

Which command correctly installs Celery and Redis as the message broker for a Django project?

easy📝 Syntax Q12 of 15
Django - Celery and Background Tasks
Which command correctly installs Celery and Redis as the message broker for a Django project?
Apip install celery redis
Bpip install django-celery
Cpip install celery-django redis-server
Dpip install celery-redis
Step-by-Step Solution
Solution:
  1. Step 1: Identify the correct packages

    Celery requires the 'celery' package and a broker like Redis, installed via 'redis' package.
  2. Step 2: Evaluate commands

    Only 'pip install celery redis' installs both needed packages correctly; others are incorrect or non-existent.
  3. Final Answer:

    pip install celery redis -> Option A
  4. Quick Check:

    Install celery and redis packages = pip install celery redis [OK]
Quick Trick: Use pip install celery redis to get both packages [OK]
Common Mistakes:
MISTAKES
  • Installing 'django-celery' which is outdated
  • Using non-existent package names
  • Forgetting to install Redis client

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Django Quizzes