mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-27 20:14:02 +03:00
895298c28f
- Change celery app to not be a Django app, more like a WSGI app - Define a Celery task in the Django users app - Write a test to execute the task - Update scripts to use the new app to start workers - Update documentation Fix #865
8 lines
232 B
Python
8 lines
232 B
Python
{% 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 -%}
|