Skip to main content

Django CFG by CMDOP

Django CFG by CMDOP: Django, Frontend and Storybook in a Docker CFG workspace

Type-safe Django. A complete application workspace. Part of CMDOP AI.

PyPI Python Django License

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/nextjs exposes read-only search_docs and get_docs over 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.121

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-cfg 2.4.121
File Size Uploaded Provenance Actions
django_cfg-2.4.121.tar.gz 2.5 MB Without provenance Details for django_cfg-2.4.121.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-cfg 2.4.121
File Interpreter ABI Platform Actions
django_cfg-2.4.121-py3-none-any.whl Python 3 none any Details for django_cfg-2.4.121-py3-none-any.whl

Total release size: 5.7 MB

Release files / django_cfg-2.4.121.tar.gz

Download URL django_cfg-2.4.121.tar.gz
Size 2.5 MB
Tags Source
SHA-256 checksum
How to use checksums
51b570c84ee594280218ff7b050e49a30f48c2562ab06aca738e9e4f1f537148
BLAKE2b-256 checksum
How to use checksums
eebbacf40e344ecef16a096d5b15b821451b4ebae2c76c001fda9921503c5878
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.121-py3-none-any.whl

Download URL django_cfg-2.4.121-py3-none-any.whl
Size 3.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f2d32775aa7e7ad446f76918ba6a81be30dd63bf25ea30d99372dcc9d7cb619f
BLAKE2b-256 checksum
How to use checksums
e54fd86504aa3ba24f3eefbb9f0075284ea1932f59cfb26bb2d7e94608a65b1a
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.121

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.

Release history Release notifications | RSS feed

This release

2.4.121 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page