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:
Step 1: Understand what custom signals do
Custom signals let different parts of a Django app send messages to each other without direct links.
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.
Final Answer:
To allow different parts of an app to communicate without being tightly connected -> Option D
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
Master "Signals" in Django
9 interactive learning modes - each teaches the same concept differently