Добрый!
Не могу понять как использовать ответ от send.
В доках написано:
Both send() and send_robust() return a list of tuple pairs [(receiver, response), ... ], representing the list of called receiver functions and their response values.
Пример:
signals.pyfrom django.dispatch import Signal
requested = Signal(providing_args=["request"])
veiws.pyfrom signals import requested
def foo (request):
....
requested.send(sender=None, request=request)
handlers.pyfrom django.dispatch import receiver
from signals import requested
@receiver(requested)
def foo1(sender, **kwargs):
request = kwargs['request']
###Как тут вернуть response?
Или я вообще чушь написал 0_о