Quick actions

cmd+k|ctrl+k

Navigation

Languages

Celery With Django

Snippet info

Language

Python

Visibility

public

Author

abdlkdrgndz

Created

2023-02-25T21:02:10.144589Z

Updated

2023-02-25T21:08:34.568935Z

CELERY_BROKER_URL = 'amqp://guest:guest@localhost:5672//'
CELERY_ACCEPT_CONTENT = ['json']
CELERY_RESULT_BACKEND = 'django-db'
CELERY_TIMEZONE = 'Europe/London'

INSTALLED_APPS = [
    ...
    'django_celery_results',
    ...
]

# Celery Results settings
CELERY_RESULT_BACKEND = 'django-db'
CELERY_CACHE_BACKEND = 'django-cache'
INFO