from django.apps import AppConfig class AnalyzerConfig(AppConfig): name = 'analyzer' def ready(self): from analyzer.agent import AnalyzerAgent self.agent = AnalyzerAgent() self.agent.start()