Skip to content

apps

QuotesConfig

Bases: AppConfig

App configuration for django_quotes app. Notably loads the receivers so that signals will be processed.

ready

ready()

Load the receivers.

Source code in src/django_quotes/apps.py
def ready(self):
    """Load the receivers."""
    try:
        import django_quotes.receivers  # noqa F401
    except ImportError:  # pragma: nocover
        pass