“Django Sellerie -E -Mail” Code-Antworten

Django Sellerie -E -Mail

# 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'
Innocent Ibex

Django Sellerie -E -Mail

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()
Innocent Ibex

Ähnliche Antworten wie “Django Sellerie -E -Mail”

Fragen ähnlich wie “Django Sellerie -E -Mail”

Weitere verwandte Antworten zu “Django Sellerie -E -Mail” auf Python

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen