Files
dbstorage/dbapp/dbapp/__init__.py

8 lines
222 B
Python

# This will make sure the app is always imported when
# Django starts so that shared_task will use this app.
try:
from .celery import app as celery_app
__all__ = ('celery_app',)
except ImportError:
pass