A simple Django app to send emails
Project description
A few months ago, I ran into this post https://blog.anvileight.com/posts/django-email-templates-with-context-stored-in-database/ and decided to make it into a lib after using it on one of my projects
Quick start
Add it to your Environment using:
pip install django-proemail-template django-summernote
Add “django-email-template” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ ... 'django_summernote'#required 'EmailTemplate', ]
Run python manage.py migrate to create the polls models.
add url for summernote:
path('summernote/', include('django_summernote.urls')),
You should see it under admin
How to use it
Create a new template on admin called default, setting the required info. Use “object” as the context to access the variables (like on a view).
And send it from any code:
EmailTemplate.send('default', { 'object': your_model_instance, })
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-proemail-template-0.1.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a87bd5bd48ba00ffb6d7d8491d119cae6b4e57f225a3f67f952b07cf823cc35 |
|
MD5 | 3b9570f1fca492cbbf1d8adb95a8940a |
|
BLAKE2b-256 | f021b37c309d3c9ff324ddd9e630ba8a0da6996bf06182185926d16863b76522 |
Close
Hashes for django_proemail_template-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad3416f3e73f1d5c4e9d71dc4851ff4f14112e67851b1ba44989d7684aa2f2b4 |
|
MD5 | 20ddefb7cd91d954b8b1d55f2123d23c |
|
BLAKE2b-256 | e605c238040e580dbec7aa8fd14ba554d2d31eef2f1434e04762fc245da83aae |