1 from __future__ import absolute_import
6 ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
8 os.path.join(ROOT, 'apps'),
9 os.path.join(ROOT, 'lib'),
10 os.path.join(ROOT, 'lib/librarian'),
13 os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'redakcja.localsettings')
15 from celery import Celery
16 from django.conf import settings
18 app = Celery('redakcja')
20 # Using a string here means the worker will not have to
21 # pickle the object when using Windows.
22 app.config_from_object('django.conf:settings')
23 app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)