from django.apps import AppConfig class TasksConfig(AppConfig): name = "core.apps.tasks" def ready(self): from core.apps.tasks import admin