use new celery
This commit is contained in:
parent
62fe578f38
commit
46621522b1
4 changed files with 31 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue