# myapp/apps.py from django.apps import AppConfig class AppTestConfig(AppConfig): name = 'app_test' def ready(self): # from .tasks import setup_periodic_tasks # setup_periodic_tasks() pass