Django-environ allows you to utilize 12factor inspired environment variables to configure your Django application.
KEY= 'part1 # part2' # comment
#475.interpolate
parameter #415.mssql-django
as engine for SQL Server #446.importlib.util.find_spec
to replace pkgutil.find_loader
#482.CONN_HEALTH_CHECKS
to database base options #413.encoding
parameter to read_env
with default value 'utf8' #442..env
file.DB_SCHEMES
through cls
rather than Env
in db_url_config
#414.Env.get_value()
to skip parsing only when default=None
, not for all default values that coerce to False
#404.Env.unicode()
.environ.register_schemes
calls and do not modify global urllib.parse.urlparse
's uses_*
variables as this no longer needed #246.Env.unicode()
is deprecated and will be removed in the next
major release. Use Env.str()
instead.ImproperlyConfigured
exception #360.memcache
/pymemcache
URL parsing for correct identification of connection type #337.Full diff: https://github.com/joke2k/django-environ/compare/v0.8.0...v0.8.1
read_env
#103, #249.pymemcache
cache backend for Django 3.2+ #335.DATABASES_URL
for Google Cloud MySQL #294.Full diff: https://github.com/joke2k/django-environ/compare/v0.7.0...v0.8.0
bytes
or str
as a default value for Env.bytes()
.Env.bytes()
#206.UserWarning
if .env
file isn't found. Log a message with INFO
log level instead #243.setup.py
.read_env
#106, #286.db_url_config
to work the same for all postgres-like schemes #264, #268.MANIFEST.in
in a source package for completeness as a part of CI pipeline.pytest
and coverage[toml]
to setuptools' extras_require
.