Breaking Changes
- Removed no longer needed
Env.unicode()
shortcut. - Removed no longer needed
simplejson
from the `compat`` module. - Removed "filthy magic stack backtracking" in favor of
django.BASE_DIR
. NowEnv.read_env()
expects a path to the.env
file. If one is not provided, it will attempt to use thedjango.BASE_DIR
constant from the Djangosetting
module. If an ImportError is encountered while it attempts to do this,Env.read_env()
will assume there's no.env
file to be found, log a WARN-level log message to that effect, and continue on. - Make
Env.read_env()
'soverrides
argument actually override variables. - Disabled proxy variable feature by default.
Features
- Allows use of
pathlib.Path
objects when reading env from the filesystem. This enables use ofenv.read_env(BASE_DIR / '.env')
instead ofread_env(os.path.join(BASE_DIR, '.env'))
. - Added support for negative float strings.
- Added ability to overwrite existing environment variables in
read_env()
.
Improvements
- Changed additional groups of dependencies declared in
setup.py
so thatdevelop
is superset now fortesting
anddocs
.
Bug Fixes
- Added missed files to the package contents.
- Don't include
tests
package in wheel. Previouslypip install django-environ-2
used to install a top-level packagetests
. This was fixed. - Fixed
db_url_config
to work the same for all Postgres aliases.