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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94a51fd2f0e98dfe67ad9d180d835580a41e17ee3330d880caaa0fe93e62559b |
|
MD5 | 85d0e8d8586b6264f294d2db2708787f |
|
BLAKE2b-256 | bb317c6fc451fd30c63ccd94204d17bc76eeef80905a05d26b5dae8ae4923417 |
Close
Hashes for django_proemail_template-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d94296b0a0867e4ebe1afd9a840919b67d30ed5c3897daf330cbf590baf1dd76 |
|
MD5 | 082f85e269a7fa0162b435afe7b4e141 |
|
BLAKE2b-256 | 6f76e1937bfb4117dc727c5bf809e507de6687e89fd2c933c7d8502f8203caca |