|
|
|
@ -10,7 +10,7 @@ app = Celery('project') |
|
|
|
# the configuration object to child processes. |
|
|
|
# the configuration object to child processes. |
|
|
|
# - namespace='CELERY' means all celery-related configuration keys |
|
|
|
# - namespace='CELERY' means all celery-related configuration keys |
|
|
|
# should have a `CELERY_` prefix. |
|
|
|
# should have a `CELERY_` prefix. |
|
|
|
app.config_from_object('project.celery_settings') |
|
|
|
app.config_from_object('project.settings', namespace='CELERY') |
|
|
|
|
|
|
|
|
|
|
|
# Load task modules from all registered Django app configs. |
|
|
|
# Load task modules from all registered Django app configs. |
|
|
|
app.autodiscover_tasks() |
|
|
|
app.autodiscover_tasks() |
|
|
|
|