cookiecutter-django/{{cookiecutter.project_slug}}/config/__init__.py

8 lines
232 B
Python
Raw Normal View History

{% if cookiecutter.use_celery == 'y' -%}
# This will make sure the app is always imported when
# Django starts so that shared_task will use this app.
from .celery_app import app as celery_app
__all__ = ("celery_app",)
{% endif -%}