Moved CELERY_BROKER_URL and CELERY_RESULT_BACKEND to .env file

This commit is contained in:
M.Ravi 2017-08-06 16:51:07 +02:00
parent 6d28783f9f
commit 5a5654be01

View file

@ -523,10 +523,8 @@ GOOGLE_ANALYTICS_PROPERTY_IDS = {
}
# CELERY Settings
# BROKER_URL = 'redis://localhost:6379'
CELERY_BROKER_URL = 'redis+socket:///tmp/redis.sock'
# CELERY_RESULT_BACKEND = 'redis://localhost:6379'
CELERY_RESULT_BACKEND = 'redis+socket:///tmp/redis.sock'
CELERY_BROKER_URL = env('CELERY_BROKER_URL')
CELERY_RESULT_BACKEND = env('CELERY_RESULT_BACKEND')
CELERY_ACCEPT_CONTENT = ['application/json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'