put on your __init__.py file:

from signals import request_finished_callback

I guess it'll work.


Atenciosamente,
Rodrigo de Oliveira

On Wed, Feb 25, 2015 at 6:21 PM, Rootz <[email protected]> wrote:

> Still not working........
>
>
> On Wednesday, February 25, 2015 at 12:55:29 PM UTC-5, Rodrigo Zayit wrote:
>>
>> If it is being loaded and it is not working, try to do by this way:
>>
>> from django.core.signals import request_finished
>> from django.dispatch import receiver
>>
>> @receiver(request_finished)
>> def request_finished_callback(sender, **kwargs):
>>     # . . .
>>
>> On Wednesday, 25 February 2015 14:01:24 UTC-3, Rootz wrote:
>>>
>>> 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 [email protected].
> To post to this group, send email to [email protected].
> 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/e2287639-0b90-4e27-9766-bf4bd356fadd%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/e2287639-0b90-4e27-9766-bf4bd356fadd%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/CAL6GM4JJEVbWokRp9LKOJEGG_Mh26eDFHB81UCjW%3DkdatPyFsA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to