Answers for "django celery email"

0

django celery email

from .celery import app as celery_app

__all__ = ['celery_app']
Posted by: Guest on August-05-2021
0

django celery email

# Celery email sending

CELERY_BROKER_URL = 'amqp://localhost'

INSTALLED_APPS += (
    'djcelery_email',
    'django_celery_results'
)

CELERY_EMAIL_TASK_CONFIG = {
    'name': 'djcelery_email_send',
    'ignore_result': False,
}

CELERY_RESULT_BACKEND = 'django-db'

EMAIL_BACKEND = 'djcelery_email.backends.CeleryEmailBackend'
Posted by: Guest on August-05-2021
0

django celery email

import os
from celery import Celery

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mysite.settings')

app = Celery('mysite')
app.config_from_object('django.conf:settings', namespace='CELERY')
app.autodiscover_tasks()
Posted by: Guest on August-05-2021

Python Answers by Framework

Browse Popular Code Answers by Language