from django.apps import apps app.autodiscover_tasks(lambda: [n.name for n in apps.get_app_configs()])