Django CFG by CMDOP
Type-safe Django. A complete application workspace. Part of CMDOP AI.
Documentation · CMDOP AI · Issues
Django CFG is an open-source framework for building typed Django applications and their frontend workspaces. It replaces hand-maintained configuration with validated Pydantic models and brings backend, generated API clients, frontend components, developer documentation and Docker development together in one reusable solution.
Use the Python package independently, or run the complete reference workspace with optional CMDOP connectivity. The framework does not require a CMDOP account to run.
What you get
| Layer | Capabilities |
|---|---|
| Django | Typed configuration, modular apps, admin, authentication, storage and jobs |
| API | DRF/OpenAPI contracts and generated TypeScript, Python and Go clients |
| Frontend | Next.js, layouts, i18n, UI components, data clients and widgets |
| Realtime | WebSocket workflows and supported streaming integrations |
| Development | Git-root workflow, isolated Docker runtime, Docs, Demo and Storybook |
| Delivery | Verified frontend builds, immutable SSR images and retained static assets |
| AI and MCP | Read-only documentation assistance, authenticated project tools and optional machine connectivity |
Install the Python package
python -m pip install django-cfg
django-cfg info
Requires Python 3.12 or 3.13 and Django 5.2 LTS (5.2.14 or newer), 6.0 or 6.1. Start with the base package or choose optional extras. See the installation guide.
For a standalone starter:
django-cfg create-project myproject
cd myproject
Follow the installation guide to configure and run your application. This package-only route is not the complete Git-root workflow.
Run the complete development workspace
On an owned Linux host with Docker Engine, Compose v2, Buildx, Git, Python 3.10 or newer, curl and OpenSSL with Ed25519 support, follow the DevOps quick start and canonical runtime instructions. This is a development environment, not a production deployment.
git clone https://github.com/commandoperator/cmdop-djangocfg.git
cd cmdop-djangocfg
git rev-parse HEAD
# Provision the base images if not already available.
docker pull postgres:17-alpine
docker pull redis:7.4-alpine
docker pull nginx:1.28-alpine
python3 solution/docker/scripts/canonical_launcher.py init \
--root "$PWD" --state-dir "$HOME/.local/share/my-django-cfg" \
--project my-django-cfg --base-port 28080 --machine my-django-cfg-dev
python3 solution/docker/scripts/canonical_launcher.py bootstrap \
--env-file "$HOME/.local/share/my-django-cfg/private.env"
python3 solution/docker/scripts/canonical_launcher.py inspect \
--env-file "$HOME/.local/share/my-django-cfg/private.env"
python3 solution/docker/scripts/canonical_launcher.py start \
--env-file "$HOME/.local/share/my-django-cfg/private.env"
python3 solution/docker/scripts/canonical_launcher.py status \
--env-file "$HOME/.local/share/my-django-cfg/private.env"
curl --fail http://127.0.0.1:28083/healthz/ready
Choose unused ports and a unique project identity. Bootstrap verifies the signed CMDOP toolbox input and installs locked dependencies. The launcher keeps private state outside Git, uses isolated application services and exposes loopback previews only by default.
| Local service | Example |
|---|---|
| Demo | localhost:28080 |
| Docs | localhost:28081 |
| Storybook | localhost:28082 |
| Django API | localhost:28083 |
The public docs website hosts documentation only. Run Demo and API inside your own workspace.
AI and MCP integration
Choose the permission boundary appropriate to your assistant:
- Documentation: the local documentation MCP in
@djangocfg/nextjsexposes read-onlysearch_docsandget_docsover stdio, using the static documentation index. It requires a released package with this functionality and the published index; there is no hosted documentation MCP endpoint. - Application MCP: authorized project users can connect with their own credentials, or OAuth when enabled. The user-facing profile exposes only eligible tools, with per-operation authorization still required. The deployment operator profile is separate. The default Django Admin Overview is an operational dashboard, not an embedded MCP connection or chat client.
- CMDOP: optional development-machine connectivity requires separate machine admission and permissions. Documentation or application MCP access does not grant machine control.
See the AI and MCP integration guide and Connect assistants.
Develop with CMDOP
CMDOP provides optional machine connectivity for developers and AI clients. The workspace supports explicit machine admission and cooperative Git-root development. The launcher does not enroll machines automatically or grant external access.
Build and verify frontend images
The SSR workflow builds from committed source and frozen dependencies, verifies candidate receipts, checks the complete runtime image inventory and runs HTTP smoke tests. Retained immutable static assets support compatible rollback preparation. These are build-only tools; production routing, state, TLS and activation belong to the deployment owner.
Repository layout
django_cfg/ Python package
solution/projects/django/ Reference Django application
solution/projects/frontend/ Apps, packages and widgets
solution/docker/ Canonical runtime and SSR tools
workflow/ Cooperative development workflow
installers/ Installer entry points
Documentation and contributions
Read the documentation for setup, configuration, API generation, frontend architecture and operations. Report bugs in GitHub Issues. See CONTRIBUTING.md and CHANGELOG.md.
License
MIT. See LICENSE. Django CFG is part of the CMDOP AI ecosystem. Django and other third-party projects retain their names and licenses.
Metadata
Release files for django-cfg 2.4.120
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_cfg-2.4.120.tar.gz | 2.4 MB | Without provenance | Details for django_cfg-2.4.120.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_cfg-2.4.120-py3-none-any.whl | Python 3 | none | any | Details for django_cfg-2.4.120-py3-none-any.whl |
Total release size: 5.5 MB
Release files / django_cfg-2.4.120.tar.gz
| Download URL | django_cfg-2.4.120.tar.gz |
|---|---|
| Size | 2.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d717fc5eb41e8cbfebf04101d9fcdabfac00f1926250424b1450b0ff0625e13
|
|
BLAKE2b-256 checksum How to use checksums |
5110c6e24849b5408eb6c15a0374ee414383cf87ac324695d07f3f5bd52d1537
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.18
|
Release files / django_cfg-2.4.120-py3-none-any.whl
| Download URL | django_cfg-2.4.120-py3-none-any.whl |
|---|---|
| Size | 3.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad11770c18429c7e2012361e8596157ddd2024bed425ebe201b66adf44b31516
|
|
BLAKE2b-256 checksum How to use checksums |
e2d1e5f7900660245dffdfc014ca5ead4662010d5d398f599181afb7c4a684c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.18
|
Security for django-cfg 2.4.120
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.