django.dispatch Signal Example Code

The Signal class allows certain senders to notify a set of receivers that some action has taken place across Django apps within the same project.

Example 1 from django-simple-history

django-simple-history is a code library that stores Django model state to track history, view and revert changes via the Django admin site. It is open source under the BSD 3-Clause "New" or "Revise" License.

django-simple-history / simple_history / signals.py

Example 2 from aldryn-accounts

aldryn-accounts is a code library for user registration and authentication in Django projects. The code for this project is open source under the MIT license.

aldryn-accounts / aldryn_accounts / signal.py

Example 3 from django-easy-timezones

django-easy-timezones (project website) is a Django middleware code library to simplify handling time data in your applications using users' geolocation data.

django-easy-timezones / easy_timezones / signals.py

Example 4 from viewflow

viewflow (project website) is a reusable workflow code library for organizing business logic in a complex web application. The code for the project is available under the GNU Alfredo license.

viewflow / viewflow / signals.py

Example 5 from django-registration (redux)

django-registration (redux) (project documentation) is a Django code library for one-phase, two-phase and three-phase registration flows. The code is available open source.

django-registration / registrations / signals.py

Example 6 from django-cors-headers

django-cors-headers is an open source library for enabling Cross-Origin Resource Sharing (CORS) handling in your Django web applications and appropriately dealing with HTTP headers for CORS requests.

django-cors-headers / src / corsheaders / signals.py