Bird
0
0

What is the main purpose of custom signals in Django?

easy📝 Conceptual Q11 of 15
Django - Signals
What is the main purpose of custom signals in Django?
ATo create new database tables dynamically
BTo speed up database queries automatically
CTo replace Django's URL routing system
DTo allow different parts of an app to communicate without being tightly connected
Step-by-Step Solution
Solution:
  1. Step 1: Understand what custom signals do

    Custom signals let different parts of a Django app send messages to each other without direct links.
  2. Step 2: Compare options to this purpose

    Only To allow different parts of an app to communicate without being tightly connected describes this communication purpose; others describe unrelated features.
  3. Final Answer:

    To allow different parts of an app to communicate without being tightly connected -> Option D
  4. Quick Check:

    Custom signals = loose communication [OK]
Quick Trick: Custom signals help parts talk without tight links [OK]
Common Mistakes:
MISTAKES
  • Thinking signals speed up queries
  • Confusing signals with URL routing
  • Believing signals create database tables

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Django Quizzes