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
8 from celery import Celery
9 from django.conf import settings
12 os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'wolnelektury.settings')
14 app = Celery('wolnelektury')
16 app.config_from_object('django.conf:settings')
17 app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)