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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56568209753cdc67af5576d879fda79f78830a68a45ad735872c73df47cbca3c |
|
MD5 | 1faa25a04a1fc7e6faac20054b8160b9 |
|
BLAKE2b-256 | a1c6dc93d89f46340bdab7246e8a1a0d3cb803f9ca50ef76b690a32da0b7e355 |
Close
Hashes for django_proemail_template-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b1226c1f952c41ea3be9e7999fc0767f8d635418e1bc1a9a3b5b919c95fa075 |
|
MD5 | d9b9386485c5b7744266011edf5b2c18 |
|
BLAKE2b-256 | 92ca287f2b497b4f1fd275e9896351bf863d6bb57f46cd1fca350c810450399f |