Skip to Content
DocsInstallation

Installation

Need the complete Django, frontend, docs, Storybook and optional CMDOP workspace? Use DevOps Quick Start. The package-only path below does not require CMDOP.

Install the Package

pip install django-cfg

Or with optional dependency groups:

pip install "django-cfg[rq]" # Background tasks pip install "django-cfg[full]" # Every runtime extra (no dev tooling)

Optional Dependency Groups

GroupWhat it adds
rqRedis Queue tasks (rq 3, django-rq 4.2+, redis, hiredis)
aiPydantic AI agents and harness
genClient generator extras (openapi-python-client) and the FastAPI/SQLModel ORM generator
paymentsStripe SDK for the payments engine
mcp-sqlpglast, the SQL validator behind the MCP raw_sql tool
s3S3-compatible media storage (django-storages, boto3)
fullAll runtime extras above plus pytest, pytest-django and pytest-mock; it does not include linters, type checkers or docs tooling
dev, test, docsTooling for working on django-cfg itself

A project that used black, isort, flake8, mypy, pytest-cov, pytest-xdist or factory-boy through the old full install must declare them in its own dev group.

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


Requirements

ToolVersionNote
Python3.12 or 3.13Required (>=3.12,<3.14)
Django5.2 LTS, 6.0 or 6.1 (>=5.2.14,<6.2)A base dependency; pin a line in your own project if you need one
Node.js22For the current frontend workspace (pnpm 9.15.4)
DockerEngine, Compose v2, BuildxOptional for Python; see DevOps

Create a Project

django-cfg create-project myproject cd myproject

This extracts the current public repository’s solution directory. It is not the complete Git-root workflow; for the full canonical runtime use DevOps Quick Start.

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 python@3.12 # 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/commandoperator/cmdop-djangocfg 


Next Steps

Last updated on