Skip to main content

A simple Django app to create and send editable emails.

Project description

Django HTML Email Templates

A Django app for allowing users to create html emails using Django template variables passed in to the context.


Use the package manager pip to install django-html-email-templates.

pip install django-html-email-templates


class Settings(models.Model):
    contact_form_reply = models.ForeignKey(

from emailtemplates.utils import send_email_template
from emailtemplates.models import EmailTemplate
from .models import Settings

# view definition
def form_valid(self, form):
    enquiry =
    # send reply email to website user
            'subject_matter': enquiry.subject,
    # send notification to website owner
            subject='Enquiry from',
                <p>There was an enquiry on your website, the details are below:</p>
                            <td>{{ }}</td>
            'enquiry': enquiry

Features to add

  • <input type="checkbox" disabled="" /> Add custom ForeignKey field to display the context that can be used
  • <input type="checkbox" disabled="" /> Add plugins for images/documents
  • <input type="checkbox" disabled="" /> Add better html field
  • <input type="checkbox" disabled="" /> Add support for Wagtail StreamField

Project details

Download files

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

Files for django-html-emailtemplates, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size django-html-emailtemplates-0.0.1.tar.gz (7.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page