update requirements
[prawokultury.git] / prawokultury / celery.py
1 from __future__ import absolute_import
2
3 import os
4
5 os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'prawokultury.settings')
6
7 from celery import Celery
8 from django.conf import settings
9
10 app = Celery('prawokultury')
11
12 app.config_from_object('django.conf:settings')
13 app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)