Wednesday, February 25, 2015

Using Signals - request_finished

I have tried using the request_finished signal but nothing happens when I tried testing it.
What suggestions or recommendations can I do to help fix the problem?

Thank you.


Below is a sample of the signals.py file (sample is taken from djangoproject.com )

###SIGNALS.PY


from django.core.signals import request_finished


def my_callback(sender, **kwargs):
   
print("request finished")
   
request_finished
.connect(my_callback)



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c25adbf7-4654-440f-bb43-9a234339ad17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment