Bird
0
0

Which Django module do you import to create a custom signal?

easy📝 Conceptual Q2 of 15
Django - Signals
Which Django module do you import to create a custom signal?
Adjango.db.models
Bdjango.dispatch
Cdjango.http
Ddjango.template
Step-by-Step Solution
Solution:
  1. Step 1: Recall where signals are defined

    Django signals are part of the dispatch system, so they come from django.dispatch.
  2. Step 2: Match the correct module for custom signals

    django.dispatch provides Signal class to create custom signals.
  3. Final Answer:

    django.dispatch -> Option B
  4. Quick Check:

    Custom signals import = django.dispatch [OK]
Quick Trick: Custom signals come from django.dispatch module [OK]
Common Mistakes:
MISTAKES
  • Importing from django.db.models instead
  • Confusing with django.http or django.template
  • Trying to import Signal from wrong module

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Django Quizzes