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.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd6906060388f49e559b2b3ee42bbaa4426e1e4e201c60da24dec5c3a9509d3f |
|
MD5 | 14a825851efa97f7a2a65d90440445a4 |
|
BLAKE2b-256 | b561e8cea955a084bc3e0f03e2bc8276b63d1c4e1d644dabd2a50f488e6ac0a8 |
Close
Hashes for django_proemail_template-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b4dcf9f039855ee0bde46b22e8a6c83650fcb85e6cb5dfc6d0cf9c4e5503a70 |
|
MD5 | e1e1d2207cb55d4e6ff39bf25e0c8e52 |
|
BLAKE2b-256 | 80863a0b30a749d26bfcc625f6e8ad23fa953ac37eba03dd94ca07f088ae8f17 |