Files
octopus/myproject/myproject/__init__.py

11 lines
272 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""
Celery configuration.
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', 'celery')