diff --git a/myproject/myproject/__init__.py b/myproject/myproject/__init__.py index c8c70ba..a58cbd9 100644 --- a/myproject/myproject/__init__.py +++ b/myproject/myproject/__init__.py @@ -4,4 +4,7 @@ This ensures the Celery app is loaded when Django starts. """ from .celery import app as celery_app +# Для совместимости с командами типа 'celery -A myproject' +celery = celery_app + __all__ = ('celery_app',)