Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# myapp/signals/handlers.py
from django.dispatch import receiver
from .signals import example_signal
@receiver(example_signal)
def example_signal_handler(sender, **kwargs):
print kwargs['arg1']
print kwargs['arg2']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment