Commit 948e0a83 authored by Janez K's avatar Janez K
Browse files

added celery

parent ef7296c4
# Sept. 5, 2012
from __future__ import absolute_import
from .celery import app
\ No newline at end of file
......@@ -44,6 +44,7 @@ INSTALLED_APPS_WORKFLOWS_SUB = (
BROKER_URL = 'django://'
# Make this unique, and don't share it with anybody.
SECRET_KEY = '*f$)twxl*rdk*o@^j%^0f0r#z7=kkyw=-2v*rjdnon_j==1uw@'
from __future__ import absolute_import
import os
from celery import Celery
from django.conf import settings
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mothra.settings')
app = Celery('mothra')
app.autodiscover_tasks(settings.INSTALLED_APPS, related_name='tasks')
def debug_task(self):
print('Request: {0!r}'.format(self.request))
\ No newline at end of file
......@@ -170,8 +170,14 @@ INSTALLED_APPS_DEFAULT = (
except NameError:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment