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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a97be258b54ea9b7160075ce2c73793a4cf63006364699a35319968c5bc337ff |
|
MD5 | de88be450e9fd9dfa92f34fbcdb832d7 |
|
BLAKE2b-256 | 4a31f0cf293bf897e1f8dbbb9a17737bb4e24320b19739261d6be421d7599e1a |
Close
Hashes for django_proemail_template-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a8bc35d80f4435d34cb32c1a873e37dcb3c24837d0d9cd1bbff2a7677a265e9 |
|
MD5 | c7e26f66d25e82dd7b0d17007cdfc5b1 |
|
BLAKE2b-256 | d9bf3c30d21c6356b36e59a19815925f29e000bdd0bf47f3b436d9eec27bbfe9 |