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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f3e12bb043eddc4e7087f7381a3c780a5048ba28cd48a50fe33f72be30e8862 |
|
MD5 | f6b41a6bb7cf19b43884f16813871eaf |
|
BLAKE2b-256 | 9d1427f912d23d672a4c6c90cbee2aa951db70f12e2867e8ea9733b30e0af889 |
Close
Hashes for django_proemail_template-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a57a5c4431cb528d93cc3900bbd437677e2a33c2cfee3b97460465f73f0f7025 |
|
MD5 | f8bb47c17ba6751cb4587133b40e0f07 |
|
BLAKE2b-256 | dd43c0e800495313675922db0d634fe60ca89bf14c890eb1ee26b0fe0c51e088 |