A lightweight Django library that allows settings to be accessed as object attributes (e.g., settings.DEBUG) instead of via dict-like settings['DEBUG']. Current version 0.3.0, compatible with Python >=3.10 and <4. Simple, stable API with no breaking changes since initial release.
pip install django-settings-holderNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a SettingsHolder with defaults and access settings as attributes.
Always use attribute access (settings.KEY) instead of dict access (settings['KEY']).
Use locks or avoid concurrent writes to the same SettingsHolder instance.
Avoid setting attribute names that shadow object methods (like 'items', 'keys', 'values').
Ensure the setting is defined via defaults or assigned before access. Use setattr or check with hasattr.
Use attribute assignment: settings.KEY = value
No dependency data recorded yet.