pypi django-environ-2 2.1.0
v2.1.0

latest releases: 2.3.0, 2.2.0
2 years ago

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. Now Env.read_env() expects a path to the .env file. If one is not provided, it will attempt to use the django.BASE_DIR constant from the Django setting 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()'s overrides 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 of env.read_env(BASE_DIR / '.env') instead of read_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 that develop is superset now for testing and docs.

Bug Fixes

  • Added missed files to the package contents.
  • Don't include tests package in wheel. Previously pip install django-environ-2 used to install a top-level package tests. This was fixed.
  • Fixed db_url_config to work the same for all Postgres aliases.

Don't miss a new django-environ-2 release

NewReleases is sending notifications on new releases.