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 Actions
django_proemail_template-0.2.7-py3-none-any.whl Python 3 none any Details for django_proemail_template-0.2.7-py3-none-any.whl

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

Security for django-proemail-template 0.2.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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