usign Signal Fichiers Django
##first add this kt the app.py of the app
# accounts/apps.py
from django.apps import AppConfig
class AccountsConfig(AppConfig):
# …
def ready(self):
from accounts import signals # noqa
#then add this to the __init__.py
default_app_config = 'accounts.apps.AccountsConfig'
Daramola Afeez