code: def web_hook_receiver(sender, **kwargs):
      
  
      deployment = Deployment.objects.get(pk=kwargs.get('deployment_id'))
  
      hooks = deployment.web_hooks
  
      if not hooks:
          return
  
      for hook in hooks:
  
          data = payload_generator(deployment)
  
          deliver_hook(deployment, hook.url, data)
docs: Generic receiver for the web hook firing piece.