Installation
Requirements
- Python 3.9+
- Django 4.2+
1. Install the package
To also install the Control Room hub (centralized dashboard for all panels):
2. Add to INSTALLED_APPS
3. Include URLs
The URL prefix (admin/dj-control-room-base/) can be changed to whatever fits your project. The admin sidebar entry will still redirect users to the correct view via the named URL dj_control_room_base:index.
4. Run migrations
Note
dj_control_room_base itself has no database tables. The migrate command is only needed for Django's built-in apps (auth, sessions, etc.). The admin sidebar entry uses a managed = False placeholder model - no migration is generated for it.
5. Create a superuser (if needed)
6. Start the server and verify
Open http://127.0.0.1:8000/admin/ and sign in. You should see a DJ CONTROL ROOM BASE section in the sidebar. Clicking the entry redirects you to the panel at /admin/dj-control-room-base/.
If you installed dj-control-room, open http://127.0.0.1:8000/admin/dj-control-room/ to see the hub dashboard with the panel listed.
Using as a library only
If you only want to use the shared primitives (PanelConfig, PanelPlaceholderModel, BasePanelAdmin) in your own panel without mounting this package's views or sidebar entry, you still need to add it to INSTALLED_APPS so Django can discover the static files and templates. You do not need to include the URLs.
INSTALLED_APPS = [
...
"dj_control_room_base", # needed for staticfiles and template discovery
]
# No URL include required when using as a library only
See Building Panels for a full guide on using the library primitives in your own panel.