I have a django project where I have defined some signals and listeners in a separate module (i.e., in a folder with __init__.py) in the files signals.py and listeners.py. These signals are to be used by multiple applications in the project. So I wrote the code connecting the signal to the listener in the models.py of one app. I placed a breakpoint there and it did get connected.
The code triggering the signal is inside a view. But inside the view, when I debugged using breakpoints, the listener is no more connected to the signal and hence the event goes unhandled.
When the signals.py and listeners.py are in the same app in which the view function triggers the signal, things are working fine. What could be the issue here and how to work around it?
Thanks & Regards,
Guruprasad
-- You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/wIk51LYzhwQJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment