Skip to main content

image1 image2 image3

A reusable Django application, admin panel, and EmailBackend that allows email configuration to be changed while the server is running. The goal of the project is to be the absolute easiest way to get email configured across multiple environments.

image4

Quickstart

  • Install Django Dynamic Email Settings:

    $ pip install django-des
  • Add it to your `INSTALLED_APPS`:

    INSTALLED_APPS = (
        ...
        'django_des',
        ...
    )
  • Add the dynamic email configuration email backend to settings.py

    EMAIL_BACKEND = 'django_des.backends.ConfiguredEmailBackend'
  • To enable test email support, add Django DES’s URL patterns:

    from django_des import urls as django_des_urls
    
    
    urlpatterns = [
        ...
        url(r'^django-des/', include(django_des_urls)),
    ]

Settings

  • DES_TEST_SUBJECT: Set to override the default test email subject line. (Default: "Test Email")

    Example:

    DES_TEST_SUBJECT = "My New Subject"
  • DES_TEST_TEXT_TEMPLATE: Set to override the template used for text test emails. Note that this is a template file location, not a template string. (Default: "des/test_email.txt")

    Example:

    DES_TEST_TEXT_TEMPLATE = "myapp/email/test_email.txt"
  • DES_TEST_HTML_TEMPLATE: Set to enable HTML emails and use the template provided as the text/html content. (Default: None)

    Example:

    DES_TEST_HTML_TEMPLATE = "myapp/email/test_email.html"

Features

  • Configure email on the fly, no need to restart the server

  • Send test emails from the Django Admin panel

  • Test text and HTML email sending

  • Supports third party mail packages like django-mailer

Support

Python

  • 2.7

  • 3.4

  • 3.5

  • 3.6

Django

  • 1.8

  • 1.9

  • 1.10

  • 1.11

  • 2.0

Running Tests

Does the code actually work?

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

Credits

Tools used in rendering this package:

History

0.1.0 (2017-12-06)

  • First release on PyPI.

Release files for django-des 1.0.0

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

Source distribution (sdist)

Source distribution for django-des 1.0.0
File Size Uploaded
django-des-1.0.0.tar.gz 9.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-des 1.0.0
File Interpreter ABI Platform
django_des-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 21.9 kB

Release files / django-des-1.0.0.tar.gz

Download URL django-des-1.0.0.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5a59f5e3647be7761fc15f11352d2229d8697e8bba856a33a9a9a9c855a83d78
BLAKE2b-256 checksum
How to use checksums
fbb309ccf9b898f3bf75687e0af1cdad11217225d7fbd8e27a70ff35cd804e39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_des-1.0.0-py2.py3-none-any.whl

Download URL django_des-1.0.0-py2.py3-none-any.whl
Size 12.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
eb53bf14a9d638755437995c1678b2e739832cfa1964175b88fbfbf4e336c126
BLAKE2b-256 checksum
How to use checksums
986c69a7a989e79d65b3579bce7df2e6754a98512da35bf3629387979921db5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

2.4.1

2 release files

2.4.0

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

This release

1.0.0 This release

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