Skip to main content

A django extension for dynamically enabling/disabling signals

Project description


Downloads OpenSSF Best Practices

PyPI - Python PyPI - Django

Django signalcontrol is a django extension for dynamically enabling/disabling signals. This application allows django signals to be disabled or enabled on-demand through the django admin interface.

Code Quality

Workflow Description Status
Bandit security checks Bandit
Black code formatting Black
CodeQL security analysis CodeQL
Coveralls code coverage status Coverage Status
Isort python import ordering Isort
Mypy static type checking Mypy
Pytest unit testing Pytest
Radon code complexity analysis Radon
Ruff static code analysis Ruff
Safety dependency scanner Saftey

Code Coverage Dashboard:


Full documentation can be found on Documentation source files are available in the docs folder.


django-signalcontrol is licensed under the GNU-3 license (see the LICENSE file for details).


  • install via pip:

    pip install django-signalcontrol
  • add the following to your INSTALLED_APPS in



Signal Decorator

SignalControl can be added to a signal with the provided decorator. In the file, import the signalcontrol decorator and add the signal_control decorator to the line directly above the signal definition.

Admin Interface

An django admin interface for django-signalcontrol is available to set signals to enabled or disabled. This displays all signals that can be controlled, and lists the application, model, signal receiver and signal name. Additionally, full search is available and filters are available for each field. Signals can be enabled or disabled individually or in bulk.

Usage Example

from signalcontrol.decorators import signal_control

@receiver(post_save, sender=MyCoolModel)
def msg_after_my_model_save(sender, instance, created, **kwargs):
    """ some signal """
    print('you just saved an instance of MyCoolModel')

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-signalcontrol-0.1.2.tar.gz (45.5 kB view hashes)

Uploaded Source

Built Distribution

django_signalcontrol-0.1.2-py3-none-any.whl (33.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page