Skip to main content

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

  1. Add it to your Environment using:

    pip install django-proemail-template django-summernote
  2. Add “django-email-template” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'django_summernote'#required
        'EmailTemplate',
    ]
  3. Run python manage.py migrate to create the polls models.

  4. 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,
})

Metadata

Release files for django-proemail-template 0.2.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for django-proemail-template 0.2.7
File Interpreter ABI Platform
django_proemail_template-0.2.7-py3-none-any.whl Python 3 none any Details

Release files / django_proemail_template-0.2.7-py3-none-any.whl

Download URL django_proemail_template-0.2.7-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
32297145a3f4ffcea541f9920860086311e40e756fce9dc9bc5393576e4f84b1
BLAKE2b-256 checksum
How to use checksums
39343512cb1580565061a5fd6e23beaf042eb5012b053fee70d85b817c3c91b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.2.7 This release

1 release file

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page