Skip to content

apps.py

PipelineConfig

Bases: AppConfig

Class representing the configuration for the vast_pipeline app.

Source code in vast_pipeline/apps.py
 4
 5
 6
 7
 8
 9
10
11
12
13
class PipelineConfig(AppConfig):
    """Class representing the configuration for the vast_pipeline app."""
    name = 'vast_pipeline'

    def ready(self) -> None:
        """Initialization tasks performed as soon as the app registry is populated.
        See <https://docs.djangoproject.com/en/3.1/ref/applications/#django.apps.AppConfig.ready>.
        """
        # import the signals to register them with the application
        import vast_pipeline.signals  # noqa: F401

ready()

Initialization tasks performed as soon as the app registry is populated. See https://docs.djangoproject.com/en/3.1/ref/applications/#django.apps.AppConfig.ready.

Source code in vast_pipeline/apps.py
 8
 9
10
11
12
13
def ready(self) -> None:
    """Initialization tasks performed as soon as the app registry is populated.
    See <https://docs.djangoproject.com/en/3.1/ref/applications/#django.apps.AppConfig.ready>.
    """
    # import the signals to register them with the application
    import vast_pipeline.signals  # noqa: F401