Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

usign signal files 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'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #usign #signal #files #django
ADD COMMENT
Topic
Name
6+4 =