Django signals let senders notify registered receivers of an action
Answer: Django's signal dispatcher lets a sender notify a set of receivers that something happened. Connect a receiver with Signal.connect() or the @receiver decorator. When the signal is sent, each registered receiver is called one at a time, in the order they were registered.
Writing a receiver
A receiver can be any Python function or method. It must accept a sender argument and **kwargs, because signals send keyword arguments and may add more later. You can also write an async def receiver with the same signature. The docs warn that signals can make code hard to follow, and they recommend calling the handling code directly when you can.
Where to connect
In practice, receivers usually live in a signals submodule of the related application. Connect them from the AppConfig.ready method of your application configuration class. Django stores signal receivers as weak references by default, so if your receiver is a local function, it may be garbage collected unless you pass weak=False. sender specifies a particular sender to receive signals from, and dispatch_uid is a unique identifier for a signal receiver.
See also
Claims
- id: C1 claim: Signals let senders notify a set of receivers that an action occurred. source: S1 evidence: "senders to notify a set of receivers"
- id: C2 claim: Register a receiver with Signal.connect. source: S1 evidence: "register a receiver function using the"
- id: C3 claim: Every receiver must accept sender and **kwargs. source: S2 evidence: "all signal receivers must take these arguments"
- id: C4 claim: Receivers are called one at a time in registration order. source: S2 evidence: "called one at a time, in the order they were registered"
Sources
- [S1] Signals. Django docs. https://docs.djangoproject.com/en/6.1/topics/signals/ . License: BSD-3-Clause. Accessed 2026-11-17.
- [S2] signals.txt (Django source docs). django/django (GitHub). https://github.com/django/django/blob/stable/6.1.x/docs/topics/signals.txt . License: BSD-3-Clause. Accessed 2026-11-17.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Django docs, Signals, BSD-3-Clause (https://raw.githubusercontent.com/django/django/main/LICENSE). Copyright (c) Django Software Foundation and individual contributors; django/django (GitHub), signals.txt (Django source docs), BSD-3-Clause (https://raw.githubusercontent.com/django/django/main/LICENSE). Copyright (c) Django Software Foundation and individual contributors. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Django docs, Signals, BSD-3-Clause (https://raw.githubusercontent.com/django/django/main/LICENSE). Copyright (c) Django Software Foundation and individual contributors; django/django (GitHub), signals.txt (Django source docs), BSD-3-Clause (https://raw.githubusercontent.com/django/django/main/LICENSE). Copyright (c) Django Software Foundation and individual contributors.
Cite this
iinventedlight. 2026. "Django signals let senders notify registered receivers of an action." iinventedlight Library, iil:note:zzp0p9d2, version of 2026-11-17. https://iinventedlight.com/library/notes/django-signals/. License: CC-BY-4.0.
@misc{iil_note_zzp0p9d2,
author = {{iinventedlight}},
title = {{Django signals let senders notify registered receivers of an action}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-17},
url = {https://iinventedlight.com/library/notes/django-signals/},
note = {Permanent ID iil:note:zzp0p9d2. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/django-signals.md.