Commit a2c20e44 by Chif Gergő

Celery setting now in django settings

parent ff2f8a4b
...@@ -13,9 +13,7 @@ app = Celery('recircle') ...@@ -13,9 +13,7 @@ app = Celery('recircle')
# 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('django.conf:settings', namespace='CELERY') app.config_from_object('django.conf:settings', namespace='CELERY')
app.conf.broker_url = 'redis://localhost:6379/0'
# Load task modules from all registered Django app configs. # Load task modules from all registered Django app configs.
app.autodiscover_tasks() app.autodiscover_tasks()
......
...@@ -252,4 +252,8 @@ CHANNEL_LAYERS = { ...@@ -252,4 +252,8 @@ CHANNEL_LAYERS = {
}, },
} }
CELERY_BROKER_URL = 'redis://localhost:6379'
CELERY_RESULT_BACKEND = "redis://localhost:6379"
ASGI_APPLICATION = "recircle.routing.application" ASGI_APPLICATION = "recircle.routing.application"
...@@ -15,3 +15,6 @@ DATABASES = { ...@@ -15,3 +15,6 @@ DATABASES = {
} }
STATIC_ROOT = "/static/" STATIC_ROOT = "/static/"
CELERY_BROKER_URL = 'redis://redis:6379'
CELERY_RESULT_BACKEND = "redis://redis:6379"
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 sign in to comment