Skip to main content
https://badge.fury.io/py/dj-admins-setting.svg

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):

https://travis-ci.org/hernantz/dj-admins-setting.svg?branch=master https://codecov.io/gh/hernantz/dj-admins-setting/branch/master/graph/badge.svg

Metadata

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)

Source distribution for dj-admins-setting 1.0.0
File Size Uploaded Provenance Actions
dj-admins-setting-1.0.0.tar.gz 2.1 kB Without provenance Details for dj-admins-setting-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dj-admins-setting 1.0.0
File Interpreter ABI Platform Actions
dj_admins_setting-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for dj_admins_setting-1.0.0-py2.py3-none-any.whl

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

Security for dj-admins-setting 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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