Skip to Content
DocsInstallation

Installation

Install the Package

pip install django-cfg

Or with optional dependency groups:

pip install "django-cfg[grpc]" # gRPC support pip install "django-cfg[full]" # All enterprise features

Optional Dependency Groups

GroupWhat it adds
grpcgRPC server support (grpcio, grpcio-tools)
centrifugoReal-time messaging (cent)
rqRedis Queue tasks (rq, django-rq)
aiPydantic AI agents
geoGeographic/PostGIS support
fullAll enterprise features

Start with the base install. You can add optional groups later as your project grows.


Requirements

ToolVersionNote
Python3.12+Required
Django5.0+Installed automatically with django-cfg
Node.js20+For frontend (pnpm will be needed)
DockerLatestOptional — for local services (Redis, PostgreSQL, Centrifugo)

Create a Project

django-cfg create-project myproject cd myproject

This generates a project structure with Pydantic v2 configuration, auto-discovered extensions, and sensible defaults.

Verify Installation

django-cfg --version django-cfg info

Run the Development Server

cd myproject # Install Python dependencies poetry install # Run migrations poetry run python manage.py migrate # Start the server poetry run python manage.py runserver # Visit http://localhost:8000

Troubleshooting

# macOS brew install [email protected] # Ubuntu/Debian sudo add-apt-repository ppa:deadsnakes/ppa sudo apt install python3.12 python3.12-venv # Windows winget install Python.Python.3.12

Support the Project

Star and Fork the repository on GitHub: github.com/markolofsen/django-cfg 


Next Steps

Last updated on