how do I load the signals file at the same point?

On Wednesday, February 25, 2015 at 12:29:57 PM UTC-5, Vijay Khemlani wrote:
>
> is the signals.py module being loaded at some point?
>
> If it isn't, then the connect function is never being called.
>
> On Wed, Feb 25, 2015 at 2:01 PM, Rootz <[email protected] <javascript:>> 
> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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
>>  
>> <https://groups.google.com/d/msgid/django-users/c25adbf7-4654-440f-bb43-9a234339ad17%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/55f732cb-4f92-4d04-a7d4-0d8609f894d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to