Added default celery.py code

This commit is contained in:
M.Ravi 2017-08-06 15:10:26 +02:00
parent d6d0b9c8c0
commit 477c8e81a4
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ app = Celery('dynamicweb')
app.config_from_object('django.conf:settings', namespace='CELERY')
# Load task modules from all registered Django app configs.
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
app.autodiscover_tasks()
@app.task(bind=True)