[Django]-Django โ€“ Signal receiver not being called

3๐Ÿ‘

So the issue was with how I had my signals imported.

Under apps.py I added the following:

from django.apps import AppConfig


class AuthUsersConfig(AppConfig):
    name = 'auth_users'

    def ready(self):
        import auth_users.signals

And then inside my __init__.py I added:

default_app_config = 'auth_users.apps.AuthUsersConfig'

After that, when I hit the endpoint, the custom logic I was using started working.

Leave a comment