Django signals allow listeners to be registered for events within the framework. This allows decoupled handling of, for example, model deletions.
Django signals allow listeners to be registered for events within the framework. This allows decoupled handling of, for example, model deletions.
Quote from docs:
Django includes a “signal dispatcher” which helps allow decoupled applications get notified when actions occur elsewhere in the framework. In a nutshell, signals allow certain senders to notify a set of receivers that some action has taken place. They’re especially useful when many pieces of code may be interested in the same events.
See documentation.