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):
Release files for dj-admins-setting 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dj-admins-setting-1.0.0.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dj_admins_setting-1.0.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 5.2 kB
Release files / dj-admins-setting-1.0.0.tar.gz
| Download URL | dj-admins-setting-1.0.0.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac87f5973a609a1f701ece92f3c1a5cefe5e23dbfd8cd1865a673796a8fdf215
|
|
BLAKE2b-256 checksum How to use checksums |
bfee3c15bf24e0fc4577920cd87e46d3b53f787bf577369efb443ecc2383a315
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|
Release files / dj_admins_setting-1.0.0-py2.py3-none-any.whl
| Download URL | dj_admins_setting-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
45ac5113f9885eda36b9d795efd0566becd94a2ab380ee4aebbe50fb6e627c6c
|
|
BLAKE2b-256 checksum How to use checksums |
264a03f294d1b535b93ae1feb338bd5c9105c19ba3a0b0c246e542edf5d12daa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
|