Skip to Content
DocumentationFundamentalsCore ConceptsOverview

Core Concepts

Django-CFG provides type-safe configuration management for Django projects using Pydantic models.

Key Features

  • Type Safety - Pydantic validation for all settings
  • Environment Detection - Auto-detect dev/staging/production
  • Smart Defaults - Context-aware configuration
  • Clean Architecture - Separation of concerns

Core Components

Architecture

System design and component interaction

Type Safety

Benefits of Pydantic validation and type-safe configuration

Quick Example

from django_cfg import DjangoConfig class MyConfig(DjangoConfig): secret_key: str = "your-secret-key" debug: bool = False project_name: str = "My App"