1 # This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
5 from celery import Celery
6 from django.conf import settings
9 os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'wolnelektury.settings')
11 app = Celery('wolnelektury')
13 app.config_from_object('django.conf:settings', namespace='CELERY')
14 app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)