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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4baa2d3d82bf9c54f5cf6da6024af1c8404ccdb8f59658170bc1afa41a02477d |
|
MD5 | 4ad66ec800418d5cefd789fb67bd121c |
|
BLAKE2b-256 | 1b093a3350275b7b2437357da6760c34f3a004cd8227c7b4e9317b4209fe4031 |
Close
Hashes for django_proemail_template-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82a3b55de8c11a63f147488e3482f34d176c8d6c29fd5b9e3cdcc2edb40ffbd8 |
|
MD5 | 5c149cffdd2721e72c1db67eb98e1565 |
|
BLAKE2b-256 | 192b397652c36ff6da06dde3f9af3efc388bcc91fd3a5ef5e15842ec5e4c9551 |