from __future__ import absolute_import

# -*- coding: utf-8 -*-
# CREATED ON DATE: 11.05.2016
__author__ = '<EMAIL>'

import os

from celery import Celery

# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project.settings')

from django.conf import settings  # noqa

app = Celery('project')
app.config_from_object(settings)
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)


@app.task(bind=True)
def debug_task(self):
    print('Request: {0!r}'.format(self.request))

from __future__ import absolute_import

# -*- coding: utf-8 -*-
# CREATED ON DATE: 11.05.2016
__author__ = '<EMAIL>'

import os

from celery import Celery

# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project.settings')

from django.conf import settings  # noqa

app = Celery('project')
app.config_from_object(settings)
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)


@app.task(bind=True)
def debug_task(self):
    print('Request: {0!r}'.format(self.request))

# -*- coding: utf-8 -*- # CREATED ON DATE: 11.05.2016 # set the default Django settings module for the 'celery' program. # noqa