Python package that splits Django settings into ordered components you can override. Supports optional files and wildcards in paths.
Overview
django-split-settings helps you replace a single monolithic settings.py with a package of smaller modules that together define your Django configuration. You list components explicitly or via patterns, and each file runs in shared context so later modules can read and change values from earlier ones.
Typical usage imports include and optional helpers from splitsettings.tools, then loads files such as base and database modules from a components folder, plus an optional localsettings.py that is skipped if missing. Wildcards in paths are supported; included order follows glob results, which may not be alphabetical.
Because settings become a package instead of one file, documentation explains adjusting BASE_DIR when static, media, and template paths must point at the project root. You can also extend INSTALLED_APPS in a local overlay by importing from a shared base module.
The package declares official Django version support and ships with no dependencies of its own. An API reference documents include and optional for composing settings trees in larger or multi-environment projects.
Key features
- Include multiple settings files
- Optional settings modules
- Wildcard path inclusion
- Shared context across includes
- Settings package layout
- BASE_DIR adjustment guidance
- No extra runtime dependencies
- Documented include and optional API
Use cases
- Split large Django settings.py
- Per-developer local overrides
- Environment-specific settings layers
- Organize database vs base config
- Load plugin settings via globs