It's a Django module to store and send email with AWS SES.
Project description
Django SES Plus
Django module to store and send email with AWS SES. It's an extension for django-ses package.
Releases
You can see the releases here.
Installation
-
pip install
django-ses-plus
. -
Add django_ses_plus to the
INSTALLED_APPS
in the settings file. -
Set up Django SES Plus email backend.
EMAIL_BACKEND = 'django_ses_plus.backends.SESPlusBackend'
Please refer to django-ses package documentation for detailed configuration of AWS SES.
- Configure settings.
DJANGO_SES_PLUS_SETTINGS = {
"SEND_EMAIL": True, # True by default.
"CELERY_TASK_RETRY_KWARGS": {
'max_retries': 15,
'countdown': 60
}
}
-
python manage.py migrate
-
(Optional) Add
SendEmailMixin
to your auth user model.
from django_ses_plus.models import SendEmailMixin
class AuthUser(SendEmailMixin,...):
....
user.send_email(subject, template_path, context, from_email=None, language=None)
# OR
from django_ses_plus.tasks import send_email
send_email.delay(subject, to_email, html_message, from_email=None, message=None, recipient_id=None)
Support
Please open an issue for support.
Contributing
Please contribute using Github Flow. Create a branch, add commits, and open a pull request.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-ses-plus-0.1.0.tar.gz
.
File metadata
- Download URL: django-ses-plus-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83f8253c68c346c94dfae17b42dfd37dce9b1505b7e92fa088fcf5b45d35565e |
|
MD5 | aa281ec9e118325a91ce709d5a6d22f4 |
|
BLAKE2b-256 | 82b227b1458548eb965033a16cfffaf2a0a5f8f42b8ebec79e3813bc6c607a02 |