Added default celery.py code

This commit is contained in:
M.Ravi 2017-08-06 15:10:26 +02:00
parent d6d0b9c8c0
commit 477c8e81a4

View file

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