2014-05-31 16:12:36 +02:00
|
|
|
"""
|
|
|
|
This module defines the Celery_ app for gvaldap.
|
|
|
|
|
|
|
|
.. _Celery: http://www.celeryproject.org/
|
|
|
|
|
|
|
|
"""
|
2014-05-30 12:12:21 +02:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
|
|
|
from celery import Celery
|
|
|
|
|
|
|
|
from django.conf import settings
|
|
|
|
|
|
|
|
os.environ.setdefault('DJANGO_SETTINGS_MODULE',
|
|
|
|
'gvaldap.settings.production')
|
|
|
|
|
|
|
|
|
2014-05-31 16:12:36 +02:00
|
|
|
#: The Celery application
|
2014-05-30 12:12:21 +02:00
|
|
|
app = Celery('gvaldap')
|
|
|
|
|
|
|
|
app.config_from_object('django.conf:settings')
|
|
|
|
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
|