1 # -*- coding: utf-8 -*-
2 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 from __future__ import absolute_import
10 from celery import Celery
11 from django.conf import settings
13 ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
15 os.path.join(ROOT, 'lib/librarian'),
18 os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'wolnelektury.settings')
20 app = Celery('wolnelektury')
22 app.config_from_object('django.conf:settings')
23 app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)