Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Django Email Templates made easy

Project Description

Django Email Templates made easy

Current Version 0.1.9

Django email is a thin wrapper for django’s multialternative email sending. For this you will need to specify a plain text template (.txt) and an html version (.html). Django email takes your template and your context, renders it and sends the email, reducing the boilerplate required for sending an email.

We try to use defaults that make sense, but you can always adapt things to your needs. You can setup the subject, email from, email to and more.

Your templates must not have extension, but other than that we assume nothing.


Install Django Email:

pip install django-email

Then, add it to your installed apps:

INSTALLED_APPS += ('django_email',)

Then use it in a project:

from django_email import djemail

# Simple Usage
# Admin will receive a message
djemail.send_email(message="My Message", subject="The Subject")

# Send an email to a specific email
        message="My Message",
        subject="The Subject")

# Advanced Usage
    template_name="path/to/template", # .txt and/or .html
    context={'variable': 'Variable Content'},
    subject="My Subject"


  • Send easy email to ADMINS.
  • Send TXT/HTML Email using a predefined template. (.txt template is mandatory)
  • Send Email using your own custom templates.

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements_test.txt
(myenv) $ python


Tools used in rendering this package:


0.1.0 (2015-11-26)

  • First release.

0.1.1 (2016-07-01)

  • Fix issue with app loading on django 1.9.

0.1.2 (2016-07-20)

  • Implement method send_email().

0.1.3 (2016-07-22)

  • Deprecate email Template class

0.1.4 (2016-07-22)

  • Resolve issue with deprecated function

0.1.5 (2016-07-23)

  • Restructure project with Cookiecutter Django Package.

0.1.6 (2016-07-23)

  • Improve send_mail() method. Add Base templates and more modes to use.

0.1.7 (2016-08-01)

  • Bug fix for default Email template, updates example and tests.
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-email-0.1.10.tar.gz (10.5 kB) Copy SHA256 Checksum SHA256 Source Nov 9, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting