Skip to main content

A reusable Django application and EmailBackend that allows email configuration to be changed while the server is running.

Project description

image1 image2 image3 image4

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.

image5

Quickstart

  • Install Django Dynamic Email Settings:

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

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

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

    from des import urls as des_urls
    
    
    urlpatterns = [
        ...
        url(r'^django-des/', include(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.

Project details


Download files

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

Source Distribution

django-des-2.0.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

django_des-2.0.0-py2.py3-none-any.whl (19.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-des-2.0.0.tar.gz.

File metadata

  • Download URL: django-des-2.0.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-des-2.0.0.tar.gz
Algorithm Hash digest
SHA256 d5e7485747d3244453f8f8450418087ac9752d4e3b95585e05335fa4db933396
MD5 d207ec91ff02ce421dc4d7b98fd5dd73
BLAKE2b-256 1781735a6431ff201c9ac21d2914f13992efb6e18aeb0e7dda592251acbad505

See more details on using hashes here.

File details

Details for the file django_des-2.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_des-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6bfb6c78246b0b55f0114648987e6d4be6631309a33a6b97f822a6874dc7d463
MD5 b32c123da73786354183c7a81d3f684b
BLAKE2b-256 91626137c9b7dd41001c3e433e26dae412dda619e6c51c5e30eb7eaafacb1e70

See more details on using hashes here.

Supported by

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