Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hipo/django-ses-plus
It's an extension for django-ses package
https://github.com/hipo/django-ses-plus
aws-ses django-ses django-sms
Last synced: 13 days ago
JSON representation
It's an extension for django-ses package
- Host: GitHub
- URL: https://github.com/hipo/django-ses-plus
- Owner: Hipo
- License: apache-2.0
- Created: 2019-09-19T17:09:28.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-05T18:15:03.000Z (14 days ago)
- Last Synced: 2024-11-05T19:21:16.653Z (14 days ago)
- Topics: aws-ses, django-ses, django-sms
- Language: Python
- Size: 38.1 KB
- Stars: 3
- Watchers: 11
- Forks: 5
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Django SES Plus
Django module to store and send email with AWS SES. It's an extension for [django-ses](https://github.com/django-ses/django-ses) package.
## Releases
You can see the releases [here](https://github.com/Hipo/django-ses-plus/releases).
## Installation
1. pip install `django-ses-plus`.
2. Add **django_ses_plus** to the `INSTALLED_APPS` in the settings file.
3. Set up Django SES Plus email backend.
`EMAIL_BACKEND = 'django_ses_plus.backends.SESPlusBackend'`
Please refer to django-ses package [documentation](https://github.com/django-ses/django-ses) for detailed configuration of AWS SES.
4. Configure settings.
```
DJANGO_SES_PLUS_SETTINGS = {
"SEND_EMAIL": True, # True by default.
"CELERY_TASK_RETRY_KWARGS": {
'max_retries': 15,
'countdown': 60
}
}
```5. `python manage.py migrate`
6. (Optional) Add `SendEmailMixin` to your auth user model.
```
from django_ses_plus.models import SendEmailMixinclass 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](https://github.com/Hipo/django-ses-plus/issues/new) for support.
## Contributing
Please contribute using [Github Flow](https://guides.github.com/introduction/flow/). Create a branch, add commits, and [open a pull request](https://github.com/Hipo/django-ses-plus/compare/).