A generic configuration loader for Django. Configuration is the term I’m using for environment-specific settings values. Most settings are static and don’t change from environment-to-environment, but some like DATABASES
or SECRET_KEY
should.
Inspired by dataclasses and Pydantic.
Users should define a class which inherits from a Configuration class:
class Config(Configuration):
DEBUG: bool = False # value with default
SECRET_KEY: str # value with no default (raises an error if not provided)