initial celery app and dependency

This commit is contained in:
Jan Dittberner 2014-12-25 16:05:21 +01:00
parent 80ba329d29
commit d7cefa6093
2 changed files with 24 additions and 0 deletions

23
gvafile/gvafile/celery.py Normal file
View file

@ -0,0 +1,23 @@
"""
This module defines the Celery_ app for gvafile.
.. _Celery: http://www.celeryproject.org/
"""
from __future__ import absolute_import
import os
from celery import Celery
from django.conf import settings
os.environ.setdefault('DJANGO_SETTINGS_MODULE',
'gvafile.settings.production')
#: The Celery application
app = Celery('gvafile')
app.config_from_object('django.conf:settings')
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)

View file

@ -8,3 +8,4 @@ celery==3.1.17
kombu==3.0.24
pytz==2014.10
wsgiref==0.1.2
PyYAML==3.11