# to make sure that the celery loads whenever in run my project #Celery app is loaded and configured as soon as Django starts. from .celery import app as celery_app # so that the @shared_task decorator will use this app in all the tasks.py files __all__ = ('celery_app',)