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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5814ed0b7cdd4ba8f95681dec5a912f6f31e7268237cfe2d0de7c97760a92a44 |
|
MD5 | ddc597104eaf1f3eb69e7d7c02e2c9f6 |
|
BLAKE2b-256 | 8befffcb3a971268b526bb12f41812ce8ecbe7ba369dd00dafa7deab3d57cba7 |
Close
Hashes for django_proemail_template-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 071a6d5b88e3c379bb32bb75050742e1119077362586eb065daf744b21d0fc43 |
|
MD5 | eba97c69408c1b9aebdc40995c738cb3 |
|
BLAKE2b-256 | b37354e37377febc0d9c0b9da8dd03887508a1641868a01919c275d35f51135c |