{% if cookiecutter.use_celery == 'y' %}
from celery.utils.log import get_task_logger

from {{cookiecutter.django_project_name}}.celery import app

logger = get_task_logger(__name__)


# Sample Task - You can remove it. This is just for an example.

@app.task
def add(x, y):
    return x + y

{% endif %}

{% if cookiecutter.use_celery == 'y' %}
from celery.utils.log import get_task_logger

from {{cookiecutter.django_project_name}}.celery import app

logger = get_task_logger(__name__)


# Sample Task - You can remove it. This is just for an example.

@app.task
def add(x, y):
    return x + y

{% endif %}

# Sample Task - You can remove it. This is just for an example.