signal.signal(signal.SIGINT, signal_handler) code example
Example: import signals
from django.db.models.signals import post_save
from django.contrib.auth.models import User
from django.dispatch import receiver
# Create your signals here.
from django.db.models.signals import post_save
from django.contrib.auth.models import User
from django.dispatch import receiver
# Create your signals here.