Skip to main content

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_proemail_template-0.2.7-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file django_proemail_template-0.2.7-py3-none-any.whl.

File metadata

File hashes

Hashes for django_proemail_template-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 32297145a3f4ffcea541f9920860086311e40e756fce9dc9bc5393576e4f84b1
MD5 2ad4c66b9739ed215577b732e13e403c
BLAKE2b-256 39343512cb1580565061a5fd6e23beaf042eb5012b053fee70d85b817c3c91b9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page