We have the following code:
{{{#!python
from functools import partial
from django import dispatch
signal_name = django_dispatch.Signal()
signal_name.connect(
partial(signal_handler, some_attr=False),
sender=model
)
}}}
When debug is `True` and the signal is fired, then the function
`signal_handler` is executed.
However, when debug is `False`, the code is not executed.
I added a print statement at the start of the function, and the function
does not read `settings.DEBUG`.
--
Ticket URL: <https://code.djangoproject.com/ticket/33549>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => needsinfo
* component: Uncategorized => Core (Other)
Comment:
Hi, I don't think you've explained the issue in enough detail to confirm a
bug in Django. Please reopen the ticket if you can debug your issue and
provide details about why and where Django is at fault. If you're having
trouble understanding how Django works, see
TicketClosingReasons/UseSupportChannels for ways to get help.
--
Ticket URL: <https://code.djangoproject.com/ticket/33549#comment:1>