Bird
0
0

Which file typically contains the Celery Beat schedule configuration in a Django project?

easy📝 Conceptual Q2 of 15
Django - Celery and Background Tasks
Which file typically contains the Celery Beat schedule configuration in a Django project?
Aurls.py
Bsettings.py
Cviews.py
Dmodels.py
Step-by-Step Solution
Solution:
  1. Step 1: Identify where configuration is stored

    Celery Beat schedules are usually defined in Django's settings.py file.
  2. Step 2: Exclude other files

    Models, views, and urls files handle data, UI logic, and routing, not scheduling.
  3. Final Answer:

    settings.py -> Option B
  4. Quick Check:

    Schedule config location = settings.py [OK]
Quick Trick: Celery Beat schedules go in settings.py, not app logic files [OK]
Common Mistakes:
MISTAKES
  • Placing schedule in models.py or views.py
  • Trying to configure schedules in urls.py
  • Not knowing where to put periodic task settings

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Django Quizzes