--- id: django-configurations version: "2.5.1" license: BSD license_treatment: permissive maintenance: aging --- # django-configurations — A helper for organizing Django settings. License: permissive · Maintenance: aging · Downloads: 383.1K/mo ## What it is and what it does django-configurations replaces Django's module-based settings system with a class-based approach, letting you define settings as Python classes that inherit from a base Configuration class. This enables composition, inheritance, and environment-specific overrides without environment variables or multiple settings files. You define a class (e.g., Dev, Production) with your settings as class attributes, set DJANGO_CONFIGURATION to the class name, and modify your manage.py, wsgi.py, or asgi.py to call django-configurations' starter functions instead of Django's defaults. The package depends only on django and is designed for projects that want cleaner, more maintainable settings organization. It supports Django 3.2 through 5.0 and Python 3.8 and later, including PyPy. The approach is particularly useful for multi-environment deployments where you need different settings for development, staging, and production without duplicating configuration logic. Use it for: - Organize development, staging, and production settings as separate Configuration subclasses with shared base settings. - Use class inheritance to share common settings across environments and override only what differs. - Store environment-specific values (database URLs, API keys) as class attributes instead of scattered environment variables. - Compose settings from multiple Configuration classes to build complex, reusable configuration hierarchies. - Migrate an existing Django project from flat settings.py to a class-based structure for better maintainability. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Organizes Django settings using composable Python classes instead of module-based configuration, enabling environment-specific settings through class inheritance and object-oriented patterns. Yes, if you want cleaner Django settings organization. The package is stable (Production/Stable status), permissively licensed, has no known vulnerabilities, and low install friction. Maintenance is aging but active; the last commit was recent and the package is not archived. It's a good fit for projects that value object-oriented configuration patterns and multi-environment management. ## Install pip install django-configurations uv add django-configurations poetry add django-configurations ## Installing django-configurations Before you install: Low friction install with a single runtime dependency on django. Maintenance status is aging—last commit was 2025-12-15 and the latest release was 2024-03-27, so updates are infrequent but the package remains active and archived status is false. License in practice: BSD license (permissive) means you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions. Quickstart: pip install django-configurations # mysite/settings.py from configurations import Configuration class Dev(Configuration): DEBUG = True # manage.py from configurations.management import execute_from_command_line execute_from_command_line(sys.argv) Requires setting DJANGO_SETTINGS_MODULE and DJANGO_CONFIGURATION environment variables, and modifying manage.py, wsgi.py, or asgi.py to use django-configurations' starter functions instead of Django's defaults. Verify before relying: - Whether the package supports Django versions beyond 5.0 (classifiers list 5.0 as latest tested). - Performance or overhead implications of class-based settings compared to module-based Django settings. ## Package facts - License: BSD (permissive) - Python support: supports_current - Install friction: low - Maintenance: aging - Downloads: 383.1K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags django settings management, environment-specific django config, django configuration classes, django settings inheritance, class-based django settings, django configuration composition, manage django environments, django-settings, configuration-management, environment-config [View on SkillFed](https://skillfed.io/packages/django-configurations) · [View on PyPI](https://pypi.org/project/django-configurations/)