Skip to main content

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.


Import the package in

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" <>, "Admins" <>')

This will result in a list of tuples like:

[('Support', ''), ('Admins', '')]

CI status

Development (master):

Project details

Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
dj_admins_setting-1.0.0-py2.py3-none-any.whl (3.1 kB) Copy SHA256 hash SHA256 Wheel py2.py3
dj-admins-setting-1.0.0.tar.gz (2.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page