X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/2b447a437065ce4bd982562f6fd0c2877074c2da..56a76b9dc0745d22d9b1eac54348d6109dc3c0e1:/src/wolnelektury/celery.py diff --git a/src/wolnelektury/celery.py b/src/wolnelektury/celery.py index d1e18d7d6..1aa0b2e0c 100644 --- a/src/wolnelektury/celery.py +++ b/src/wolnelektury/celery.py @@ -1,9 +1,6 @@ -# -*- coding: utf-8 -*- # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # -from __future__ import absolute_import - import os from celery import Celery from django.conf import settings @@ -13,5 +10,5 @@ os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'wolnelektury.settings') app = Celery('wolnelektury') -app.config_from_object('django.conf:settings') +app.config_from_object('django.conf:settings', namespace='CELERY') app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)