An asynchronous SparkPost email backend for Django; currently only supports Dramatiq (not Celery).
-
Install sparkpost-async via pip:
pip install sparkpost-async
-
Add
sparkpost_async
to yourINSTALLED_APPS
in your project settings.py file:
INSTALLED_APPS = [
'...',
'sparkpost_async',
]
-
Set the
EMAIL_BACKEND
setting in settings.py:EMAIL_BACKEND = 'sparkpost_async.email_backend.AsyncSparkPostEmailBackend'
-
Make sure all other settings required by
python-sparkpost
are set. See the python-sparkpost docs for more info. -
Also make sure that
dramatiq
anddjango_dramatiq
are properly configured.
- Compatible with Python 3.8 and above.
- Compatible with Django 3.2 and above.
This project follows semantic versioning (SemVer).
Check the root of the repo for these files.