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-cfgOr 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
| Group | What it adds |
|---|---|
rq | Redis Queue tasks (rq 3, django-rq 4.2+, redis, hiredis) |
ai | Pydantic AI agents and harness |
gen | Client generator extras (openapi-python-client) and the FastAPI/SQLModel ORM generator |
payments | Stripe SDK for the payments engine |
mcp-sql | pglast, the SQL validator behind the MCP raw_sql tool |
s3 | S3-compatible media storage (django-storages, boto3) |
full | All runtime extras above plus pytest, pytest-django and pytest-mock; it does not include linters, type checkers or docs tooling |
dev, test, docs | Tooling 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
| Tool | Version | Note |
|---|---|---|
| Python | 3.12 or 3.13 | Required (>=3.12,<3.14) |
| Django | 5.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.js | 22 | For the current frontend workspace (pnpm 9.15.4) |
| Docker | Engine, Compose v2, Buildx | Optional for Python; see DevOps |
Create a Project
django-cfg create-project myproject
cd myprojectThis 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 infoRun the Development Server
With Poetry
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:8000Troubleshooting
Python Version
# 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.12Support the Project
Star and Fork the repository on GitHub: github.com/commandoperator/cmdop-djangocfg
Next Steps
- First Project - Build your first Django-CFG app
- Configuration - Learn about settings and environment
- Sample Project - Explore a production example