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', 'wolnelektury.settings')
15 from celery import Celery
16 from django.conf import settings
18 app = Celery('wolnelektury')
20 app.config_from_object('django.conf:settings')
21 app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)