Django Environ Versions Save

Django-environ allows you to utilize 12factor inspired environment variables to configure your Django application.

v0.11.2

7 months ago

Fixed

  • Revert "Add variable expansion" feature due to #490

v0.11.1

7 months ago

Fixed

  • Revert "Add interpolate argument to avoid resolving proxied values." feature due to #485

v0.11.0

7 months ago

Added

  • Added support for Django 4.2 #456.
  • Added support for secure Elasticsearch connections #463.
  • Added variable expansion #468.
  • Added capability to handle comments after #, after quoted values, like KEY= 'part1 # part2' # comment #475.
  • Added support for interpolate parameter #415.

Changed

  • Used mssql-django as engine for SQL Server #446.
  • Changed handling bool values, stripping whitespace around value #475.
  • Use importlib.util.find_spec to replace pkgutil.find_loader #482.

Removed

  • Removed support of Python 3.5.

v0.10.0

1 year ago

Added

  • Use the core redis library by default if running Django >= 4.0 #356.
  • Value of dict can now contain an equal sign #241.
  • Added support for Python 3.11.
  • Added CONN_HEALTH_CHECKS to database base options #413.
  • Added encoding parameter to read_env with default value 'utf8' #442.
  • Added support for Django 4.1 #416.

Deprecated

  • Support of Python < 3.6 is deprecated and will be removed in next major version.

Changed

  • Used UTF-8 as a encoding when open .env file.
  • Provided access to DB_SCHEMES through cls rather than Env in db_url_config #414.
  • Correct CI workflow to use supported Python versions/OS matrix #441.
  • Reworked trigger CI workflows strategy #440.

Fixed

  • Fixed logic of Env.get_value() to skip parsing only when default=None, not for all default values that coerce to False #404.
  • Deleted duplicated include in docs/quickstart.rst #439.

Removed

  • Removed deprecated Env.unicode().
  • Removed environ.register_schemes calls and do not modify global urllib.parse.urlparse's uses_* variables as this no longer needed #246.

v0.9.0

1 year ago

Added

  • Added support for Postgresql cluster URI #355.
  • Added support for Django 4.0 #371.
  • Added support for prefixed variables #362.
  • Amended documentation.

Deprecated

  • Env.unicode() is deprecated and will be removed in the next major release. Use Env.str() instead.

Changed

  • Attach cause to ImproperlyConfigured exception #360.

Fixed

  • Fixed _cast_urlstr unquoting #357.
  • Fixed documentation regarding unsafe characters in URLs #220.
  • Fixed environ.Path.__eq__() to compare paths correctly #86, #197.

v0.8.1

2 years ago

Fixed

  • Fixed "Invalid line" spam logs on blank lines in env file #340.
  • Fixed 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

v0.8.0

2 years ago

Added

  • Log invalid lines when parse .env file #283.
  • Added docker-style file variable support #189.
  • Added option to override existing variables with read_env #103, #249.
  • Added support for empty var with None default value #209.
  • Added pymemcache cache backend for Django 3.2+ #335.

Fixed

  • Keep newline/tab escapes in quoted strings #296.
  • Handle escaped dollar sign in values #271.
  • Fixed incorrect parsing of DATABASES_URL for Google Cloud MySQL #294.

Full diff: https://github.com/joke2k/django-environ/compare/v0.7.0...v0.8.0

v0.7.0

2 years ago

Added

  • Added support for negative float strings #160.
  • Added Elasticsearch5 to search scheme #297.
  • Added Elasticsearch7 to search scheme #314.
  • Added the ability to use bytes or str as a default value for Env.bytes().

Fixed

  • Fixed links in the documentation.
  • Use default option in Env.bytes() #206.
  • Safely evaluate a string containing an invalid Python literal #200.

Changed

  • Added 'Funding' and 'Say Thanks!' project urls on pypi.
  • Stop raising UserWarning if .env file isn't found. Log a message with INFO log level instead #243.

v0.6.0

2 years ago

Added

  • Python 3.9, 3.10 and pypy 3.7 are now supported.
  • Django 3.1 and 3.2 are now supported.
  • Added missed classifiers to setup.py.
  • Accept Python 3.6 path-like objects for read_env #106, #286.

Fixed

  • Fixed various code linting errors.
  • Fixed typos in the documentation.
  • Added missed files to the package contents.
  • Fixed db_url_config to work the same for all postgres-like schemes #264, #268.

Changed

  • Refactor tests to use pytest and follow DRY.
  • Moved CI to GitHub Actions.
  • Restructuring of project documentation.
  • Build and test package documentation as a part of CI pipeline.
  • Build and test package distribution as a part of CI pipeline.
  • Check MANIFEST.in in a source package for completeness as a part of CI pipeline.
  • Added pytest and coverage[toml] to setuptools' extras_require.

v0.3

2 years ago

Added

  • Add cache url support
  • Add email url support
  • Add search url support

Changed

  • Rewriting README.rst