use new celery

This commit is contained in:
j 2019-07-16 12:22:22 +01:00
commit 46621522b1
4 changed files with 31 additions and 6 deletions

View file

@ -195,7 +195,7 @@ DATABASES = {
}
#rabbitmq connection settings
CELERY_RESULT_BACKEND = 'database'
CELERY_RESULT_BACKEND = 'django-db'
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
CELERY_ACCEPT_CONTENT = ['json']
@ -297,3 +297,8 @@ ALLOWED_HOSTS = ['*']
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
DATA_UPLOAD_MAX_MEMORY_SIZE = 32 * 1024 * 1024
try:
CELERY_BROKER_URL
except NameError:
CELERY_BROKER_URL = BROKER_URL