Skip to content

Instantly share code, notes, and snippets.

@chriskief
Created February 27, 2014 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chriskief/9257048 to your computer and use it in GitHub Desktop.
Save chriskief/9257048 to your computer and use it in GitHub Desktop.
# 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