Is there a way to list Django signals?


Is there a way to list Django signals?



Is there a way to see which signals have been set in Django?




Django: is there a way to count SQL queries from an unit test?

1:



Memcache db models to make search more efficient
It's not really exposed in docs but Signal is just a class that contains a list of receivers which are called on event.


Exclude path from urls.py in django
You can manually check this list:.
Mercurial: keep 2 branches in sync but with certain persistent differences?
from django.db.models.signals import *  for signal in [pre_save, pre_init, pre_delete, post_save, post_delete, post_init, post_syncdb]:     # print a List of connected listeners     print signal.receivers 


Django WizardForm and second form will be “dynamic”


Django + Emacs (as TextMate replacement)

2:



How do I migrate a model out of one django app and into a new one?
There's a django app called django-debug-toolbar which adds a little toolbar at the top of all django served pages providing info related to the backend of the page's rendering, such as how many queries were executed, how much time they each took, etc.


WMD in Django Admin?
It also prints out signals.

I don't use signals in my app, so I have never used that feature, but it's there..


3:


I wrote little command that shows all signal listeners: https://gist.github.com/1264102. You can modify it to show signals only..



80 out of 100 based on 50 user ratings 950 reviews