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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b97d9c18e17049c5b7766cc11f758c85eda75e55c95014e0bd06796327f5252f |
|
MD5 | ba14ccc88c46bf86b0e329d3fb5fe7f3 |
|
BLAKE2b-256 | f2ecd02c160f5a6b36783e493def06a0ba94387a920fad4ff71f6a28c5ea3d5a |
Close
Hashes for django_proemail_template-0.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1ef178b4068aab3df38acd1f7818039d06ce0eb49e6fc843ca4aac3bfef72da |
|
MD5 | 6fd2b3233a32b5fc8324c3220012665c |
|
BLAKE2b-256 | bf68c13919a58743f6fe8a333225e8707fc7922497f8a182584078ef3e60a8ff |