Is there a way to list Django signals?

前端 未结 4 368
面向向阳花
面向向阳花 2021-02-04 00:48

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

4条回答
  •  借酒劲吻你
    2021-02-04 01:11

    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. It also prints out signals. I don't use signals in my app, so I have never used that feature, but it's there.

提交回复
热议问题