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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed6e47c9607a7310943301ba28fa749c3482798b2a48982f6b520f6336573e9b |
|
MD5 | 994c9007a82f448386f4725646df6bda |
|
BLAKE2b-256 | 800cfd8314a24d60c5e3b29eee0cbf8cb1b90369c384de02808b5143c417c479 |
Close
Hashes for django_proemail_template-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f77e943cab250c0603f2270d9ad97cc148ee21ce60cdebcbeb1c8f27a8ed3e7a |
|
MD5 | f19389ffb1115eb8b5fac400fbd0387f |
|
BLAKE2b-256 | c1bd4e7000937f538ea7d01bcac8c2ce5fc0a7976fa4301fa497827cc103001a |