dj-control-room-base
dj-control-room-base is a core library for Django Control Room panels. It provides the shared primitives that every panel needs: settings management, CSS injection, permission enforcement, admin sidebar integration, template context helpers, and MCP-style panel tools.
Official Django Control Room panels ship with this package as a dependency and build on these APIs rather than reimplementing them panel by panel.
Optionally, the package can also be mounted as a full panel in its own right: it ships a bundled design system reference UI and example patterns that are useful when building or theming new panels.
- Official site: djangocontrolroom.com
- Control Room app: dj-control-room
- Docs: django-control-room.github.io/dj-control-room-base
What this library provides
- Centralized CSS and permissions - a single
PanelConfigobject per panel drives CSS injection, staff/group/superuser checks, and settings merging across built-in, panel, hub, and project layers. - Admin sidebar integration -
PanelPlaceholderModelandBasePanelAdmingive any panel a sidebar entry with no extra migrations. - Template context helpers -
panel_config.get_context(request, ...)returns a ready-to-use context with CSS and Django admin variables included. - Entry-point discovery - panels register with the hub via a
PanelPluginsubclass and apyproject.tomlentry point. - Panel tools - optional, permission-scoped callables the
dj-control-roomhub aggregates for AI agent and in-admin chat integrations. - Theme adapters - opt-in stylesheets that match panels to
django-unfold,django-jazzmin, ordjango-grappelli.
See the full documentation for configuration options and a guide to building your own panel on this library.
Requirements
- Python 3.9+
- Django 4.2+ (tested in CI across Django 4.2, 5.2, and 6.0)
Quick start
pip install dj-control-room-base
# settings.py
INSTALLED_APPS = [
...
"dj_control_room_base",
]
# urls.py
urlpatterns = [
path("admin/dj-control-room-base/", include("dj_control_room_base.urls")),
path("admin/", admin.site.urls),
]
python manage.py migrate
python manage.py runserver
Open /admin/ and sign in. A DJ CONTROL ROOM BASE entry appears in the sidebar and links to the panel at /admin/dj-control-room-base/.
See Installation for the complete walkthrough, Configuration for CSS/permission settings and theme adapters, and Building Panels for a guide to building your own panel on this library.
Development
git clone https://github.com/django-control-room/dj-control-room-base.git
cd dj-control-room-base
make install
make test_local
See Development for Docker setup, coverage, and the full Makefile reference.
License
MIT. See LICENSE.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dj_control_room_base-1.4.0.tar.gz.
File metadata
- Download URL: dj_control_room_base-1.4.0.tar.gz
- Upload date:
- Size: 136.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
475b0086fed12c45e0e9fb9538d27030665c6d3d56a4a1f1ba9d00b2637e295d
|
|
| MD5 |
278b3dfb347a815466feeea9a2775429
|
|
| BLAKE2b-256 |
e3cf4b9ffa280c11187c7e96de6dc83875552a6d69f536ae8a7a72426271c26d
|
Provenance
The following attestation bundles were made for dj_control_room_base-1.4.0.tar.gz:
Publisher:
python-publish.yml on django-control-room/dj-control-room-base
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dj_control_room_base-1.4.0.tar.gz -
Subject digest:
475b0086fed12c45e0e9fb9538d27030665c6d3d56a4a1f1ba9d00b2637e295d - Sigstore transparency entry: 2298381488
- Sigstore integration time:
-
Permalink:
django-control-room/dj-control-room-base@d79243a01b4e95c32a57c0691664280127fedf25 -
Branch / Tag:
refs/tags/1.4.0 - Owner: https://github.com/django-control-room
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@d79243a01b4e95c32a57c0691664280127fedf25 -
Trigger Event:
release
-
Statement type:
File details
Details for the file dj_control_room_base-1.4.0-py3-none-any.whl.
File metadata
- Download URL: dj_control_room_base-1.4.0-py3-none-any.whl
- Upload date:
- Size: 147.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
719b6f283faba6d7347137c9b922154ebfb89d97310f0c9ff4c2cefdd07f257f
|
|
| MD5 |
9779cebd24460f9d833541c4db2a9ba4
|
|
| BLAKE2b-256 |
227ab8cfd2998faae8bfa83faadb20a9376e35d1d10ee6c83cc45e63d97d4e12
|
Provenance
The following attestation bundles were made for dj_control_room_base-1.4.0-py3-none-any.whl:
Publisher:
python-publish.yml on django-control-room/dj-control-room-base
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dj_control_room_base-1.4.0-py3-none-any.whl -
Subject digest:
719b6f283faba6d7347137c9b922154ebfb89d97310f0c9ff4c2cefdd07f257f - Sigstore transparency entry: 2298381496
- Sigstore integration time:
-
Permalink:
django-control-room/dj-control-room-base@d79243a01b4e95c32a57c0691664280127fedf25 -
Branch / Tag:
refs/tags/1.4.0 - Owner: https://github.com/django-control-room
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@d79243a01b4e95c32a57c0691664280127fedf25 -
Trigger Event:
release
-
Statement type: