Connect Signals in apps.py

A snippet showing how to connect signals in apps.py.


# apps.py
from django.apps import AppConfig

class MyAppConfig(AppConfig):
    default_auto_field = 'django.db.models.BigAutoField'
    name = 'myapp'

    def ready(self):
        import myapp.signals
      
Explanation:
  • Imports the signals module to ensure they are registered when the app is ready.
  • Category Signals
  • Total Views 783
  • Last Modified 16 May, 2026
  • Tags #signals #apps #config #django
Never miss a story on Django.wiki

Subscribe for fresh tutorials, snippets, and updates.

By subscribing you agree to our Privacy Policy.