A simple Django app to send emails
Project description
I 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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1089869014cde02dd32052349bc9fcd8ce16607cd4218743c75cb5a304ab2f21 |
|
MD5 | 8df2e8136f840aeb2ad6dbeedc6f2e3e |
|
BLAKE2b-256 | 81b7b1d57eaf484d4799d2ed8cae9542cc3197eb788d1254f6a5f68ff4385198 |
Close
Hashes for django_proemail_template-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 000d1adcb5c01b1c0c4e0d02c9aa2f936701bc219103d51a470c5e6d204c20f1 |
|
MD5 | b06c7e85422ea82cce4931e4d6e8f61f |
|
BLAKE2b-256 | eb586d3b15d7cd461ed6d761ec592146992ea0aa5329ad5c374759ff91249293 |