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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1707f005e86f19cd41829052b228249f335baeafb77042fea1cab763a0c1463 |
|
MD5 | a1836edb0c1c406a9bdb1a85f5c6a521 |
|
BLAKE2b-256 | d0dadf71561cf9594aa38339f171638c2aca5e6e0b60d793ac947d6090b8f943 |
Close
Hashes for django_proemail_template-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16b8d1d437e0fe25d7a58ca98f05b38d51ef19b7b7b543b26861df1142717b28 |
|
MD5 | bd47dbac7b7d6e65129a404d82b8f0a0 |
|
BLAKE2b-256 | 3f88b7756c27ea947d225f58d70385eaff297c3c3d586060032bab4f9cc89e75 |