Skip to content

Releases: orlnub123/django-class-settings

0.2.0

03 Jan 16:17
Compare
Choose a tag to compare

Added

  • Added Env.read_env to read into the environment from a .env file.
  • Added the optional env argument that defaults to acting as a noop.
  • Made the default settings accessible directly from the class.
  • Allowed None to be passed as a prefix.
  • Added the inject_settings Meta option to inject inherited settings into the
    class namespace.

Changed

  • Excluded nonupper attributes from default_settings.
  • Restricted the settings module to the {module}:{class} formatting.
  • Stopped normalizing lowercase prefixes.

Fixed

  • Fixed Settings subclasses not inheriting the correct Meta sometimes.

0.1.3

03 Jan 16:10
Compare
Choose a tag to compare

Fixed

  • Ensured Meta is a class.
  • Fixed Env.prefixed not resetting the prefix on exceptions.
  • Fixed misleading missing environment variable error messages.
  • Fixed lowercase prefixes not being normalized to uppercase.

0.1.2

17 Mar 12:48
Compare
Choose a tag to compare

Fixed

  • Fixed indented Settings subclasses erroring.
  • Fixed Settings.is_overridden ignoring class attributes.

0.1.1

20 Nov 13:13
Compare
Choose a tag to compare

Fixed

  • Fixed nested Env.prefixed context managers with lowercase prefixes not
    having _ appended to their prefixes.
  • Fixed exceptions not being correctly chained.
  • Made sure DJANGO_SETTINGS_CLASS points to a Settings subclass.
  • Fixed prefixless env calls erroring outside of Settings subclasses.

0.1.0

13 Nov 11:00
Compare
Choose a tag to compare
django-class-settings 0.1.0