I'm having problems with connecting to a signal in django. I've been following a tutorial available at http://dmitko.ru/?p=546 and tried to extend user registration.
I have django-registration correctly set up. It is working fine. For debug purpose I've put the following code into my urls.py:
from registration.signals import user_registered
def log_user_created(sender, user, request, ** kwargs):
logger.debug("got USER_REGISTERED signal")
if settings.DEBUG:
logger.debug("registering debug signal listeners")
user_registered.connect(log_user_created)
else:
logger.debug("debuging signals not enabled")
However the log_user_created function is never called.
My question is: how can I debug my app to see where the user_registered signal is being swallowed?
Note: I've checked that my version of django-registration works correctly. I've switched my version with the one from the mentioned blog's example app. It did not change the observed behaviour.