Use a string to configure the admins emails setting in your Django Application.
Project description
This utility is based on dj-database-url by Kenneth Reitz.
It allows to utilize the 12factor inspired environments variable to configure the ADMINS emails list in a Django application.
Usage
Import the package in settings.py:
import dj_admins_setting
Fetch your admins emails. The default option is fetch them from ADMINS environment variable:
ADMINS = dj_admins_setting.config()
Other option is parse an arbitrary emails list string:
ADMINS = dj_admins_setting.parse('"Support" <support@email.com>, "Admins" <webmaster@email.com>')
This will result in a list of tuples like:
[('Support', 'support@email.com'), ('Admins', 'webmaster@email.com')]
CI status
Development (master):
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for dj_admins_setting-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45ac5113f9885eda36b9d795efd0566becd94a2ab380ee4aebbe50fb6e627c6c |
|
MD5 | 70900b1eaf9c9a30f71c6aad43ae909e |
|
BLAKE2b-256 | 264a03f294d1b535b93ae1feb338bd5c9105c19ba3a0b0c246e542edf5d12daa |