apps.py 235 Bytes
from django.apps import AppConfig


class MonitoringConfig(AppConfig):
    name = 'monitoring'

    def ready(self):
        from monitoring.agent import MonitoringAgent
        self.agent = MonitoringAgent()
        self.agent.start()