Skip to main content

TODO

  • Enviar todas as mensagens que levantem TemplateDoesNotExist para uma fila apropriada

django-async-email

Actions Status Actions Status

EMAILS_TEMPLATES = {
    "welcome": {
        "subject": "welcome/subject.txt",
        "body_html": "welcome/body.html",
        "body_txt": "welcome/body.txt",
    }
}

# Customize the max_retries for one specific email category task
ASYNC_EMAIL_TASKS = {"async_email.tasks.welcome": {"max_retries": 20}}

# Customize the max_retries for all the tasks
# Default is 20
ASYNC_EMAIL_TASKS_MAX_RETRIES = 10
ASYNC_EMAIL_TASKS_MAX_RETRIES = 10

Important notes

python setup.py sdist bdist_wheel && pip uninstall -y django_async_email && python -m pip install dist/django_async_email-0.1.0-py2.py3-none-any.whl

Demo project

cd demo_project
# Build and run the docker image
docker-compose build && docker-compose up -d demo_project
# Run migrations
docker-compose exec demo_project python manage.py migrate
# Create the superuser
docker-compose exec demo_project python manage.py createsuperuser
celery worker --app=demo_project.celery -l info --pool=eventlet

Metadata

Release files for django-async-email 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-async-email 0.1.2
File Size Uploaded
django-async-email-0.1.2.tar.gz 22.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-async-email 0.1.2
File Interpreter ABI Platform
django_async_email-0.1.2-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 37.1 kB

Release files / django-async-email-0.1.2.tar.gz

Download URL django-async-email-0.1.2.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0bf7451fc20805c96bbd1396f96422211cdab6a47cd1f311d904563cf38b9ba4
BLAKE2b-256 checksum
How to use checksums
8cfe7776e174bd78572776d5243c517d7fa92c021e1aa41c6ac26779c0719fdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

Release files / django_async_email-0.1.2-py2.py3-none-any.whl

Download URL django_async_email-0.1.2-py2.py3-none-any.whl
Size 14.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e97783c954417e7907d1b2006481e7240612991c9783c72b9c1afe7cd5ff7685
BLAKE2b-256 checksum
How to use checksums
f78f984a02da199e7de555abf94801034d740a072db25d2bdd9ac9bfc3ac9c3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page