This release is a pre-release and may not be stable for production use.
DjangoLux — A Modern UX/UI Framework for Django
DjangoLux is a design-first UX/UI framework for Django. It ships a themeable design system on Bootstrap 5 (built-in and custom themes, custom fonts, full RTL/LTR and multilingual rendering) together with the infrastructure a real application needs: a first-launch setup wizard, users, scopes and two-factor sign-in, an audit trail, zero-boilerplate CRUD, tables, document files, backups and a built-in task runner. All of it is wired together and configurable at runtime, so a project spends its code on its own features.
python -m dlux startproject generates a project already wired for DjangoLux, with a
Docker Compose stack that Composer deploys,
checks and updates. The long-form manual lives in
docs/.
Highlights
- Configuration: a 19-step first-launch wizard at
/sys/setup/, live System Settings editors, a database-backedSystemSettingsover theDLUX_CONFIGfallback, and themes, fonts and translations edited in the UI. System Configuration - Security and accounts: password policy, lockout, email and TOTP two-factor sign-in, trusted devices, staff tiers and scopes, optional email-verified public registration, and optional OIDC SSO packages. DSRP-1 · Operations
- Operations: an activity log and reports; encrypted full, data-only, portable
and incremental backups with an offline
.dlbviewer; managed assets; and a database-backed task runner (dlux_worker) for DjangoLux's and the project's background work. Backups · Task Runner - Tables, forms and UI:
DluxTablewith administrator and personal column layouts, the list-page ribbon, sections and dynamic-modal CRUD, context-menu actions, global search, tutorials and Dlux-owned inputs. UI Integration · Table Columns - Documents: one
register_document_file()call connects upload, ScanLink scanning, a viewer, page editing and file history to a model field, with OCR and the PDF toolkit as optional extras. Document Files - Deployment and updates: the generated Compose stack, verified inline updates on a stable or beta channel, the Operations panel, the deployment doctor, non-root app images, and outbound requests only through the Composer relay. Verified Inline Updates · Deployment Doctor
- Developer integration:
dlux_settings(globals()), rootdlux.urls, app scaffolds,ScopedModelwith audit fields, soft delete and actor tracking, and template extension points. Developer Guide
Every capability, with the doc that explains it, is in Features.
Quick Start
DjangoLux needs Python 3.11 or later (tested on 3.11 to 3.14) and Django 5.1 or later. Its other dependencies install with it.
A new project
pip install django-lux
python -m dlux startproject myproject --image acme/myproject --repo acme/myproject
cd myproject
./start.sh -d -b
startproject writes a Django project wired for DjangoLux, a Compose stack (web,
worker, db, redis, Caddy, the SMTP relay, the ocr service and Composer's
agent), .secrets/.env with the bootstrap secrets, and a tag-driven release
pipeline. --image is the Docker image the deployment pulls and the release
workflow pushes, and --repo is the GitHub repository for release links. On a
terminal it prompts for both; --no-input keeps the defaults.
./start.sh -d -b builds the image and starts the development stack. The first
boot creates the superuser admin with the ADMIN_PASS from .secrets/.env; sign
in and complete the setup wizard at /sys/setup/. Add an app with
python -m dlux startapp billing --register.
An existing Django project
-
Call the settings helper at the end of
settings.py. It adds the required apps, middleware, context processor and Crispy Bootstrap 5 settings, and fills in the runtime defaults your settings do not already set.from dlux.utils import dlux_settings dlux_settings(globals())
-
Mount
dlux.urlsat the project root, which serves/accounts/...and/sys/....from django.urls import include, path urlpatterns = [ path("", include("dlux.urls")), ]
-
Run
python manage.py dlux_setup, which applies DjangoLux's migrations and runs the deployment doctor. Then sign in as a superuser and complete/sys/setup/.
Getting Started covers manual wiring, mounting under a prefix, running behind a front proxy and what the first launch does.
Optional Extras
pip install "django-lux[pdf,ocr]"
| Extra | Adds |
|---|---|
pdf |
pypdf, for the PDF toolkit's server-side assembly. |
ocr |
The engine of the optional ocr service, pinned exactly. It needs Python 3.14 or earlier, because onnxruntime publishes no Python 3.15 wheels; generated project images build on python:3.14-slim. See OCR. |
sso |
django-lux-sso, the OIDC provider plugin. The client SDK is the separate django-lux-sso-client package. See SSO. |
updater |
pypi-attestations. Generated projects install it with ocr; DjangoLux does not import it, because Composer downloads, attests and stages every release. |
Deployment with Composer
Generated projects deploy with Composer,
DjangoLux's containerized operations companion. ./start.sh (or start.ps1) runs
Composer from its image, so the host needs Docker but no local Python or Compose
toolchain. Composer resolves the secrets, brings the stack up, waits for health checks and applies updates. Inside
the stack, composer-agent checks for DjangoLux releases and project images and
relays the stack's outbound requests, since web and worker have no internet
access. composer-executor, which is not network-facing, holds the only Docker
write access.
| DjangoLux | Composer | DLUX Control Plane (optional) |
|---|---|---|
| Application policy: backups, maintenance, update admission and locking, migration safety, permissions and final application state. | Container execution: secret handoff, registry checks, the Compose lifecycle, health verification, deployment status and the agent relay. | Fleet coordination: enrollment, authorization, typed command routing, batches, audit history and relayed snapshots. |
DjangoLux decides whether an operation may proceed; Composer performs the container work. The agent has no inbound listener and accepts only typed, allowlisted operations, and local operations keep working while the Control Plane is unreachable.
./start.sh # start the production stack
./start.sh -d # start with the development override
./start.sh update # pull and recreate updated services
./start.sh check # check the stack; --fix applies recognized migrations
See Composer Agent Integration, Verified Inline Updates, Outbound Requests and the Composer image.
Built with DjangoLux
| Project | What it shows |
|---|---|
| Switch POS Sales CRM · POS · Catalog · Finance |
A sales system covering product catalogs, inventory, hybrid-currency pricing, invoices, finance and role-controlled sales workflows, on DjangoLux as the foundation of a day-to-day business application. |
| DLUX Control Plane Fleet management · Secure operations · Deployment |
A scoped control plane that monitors and operates fleets of DjangoLux Compose deployments through their outbound agents: enrollment, typed operational commands, update orchestration, audit history and security-focused administration. |
Documentation
- Documentation index: every guide, grouped for operators and developers
- Features: the capability map
- Getting Started: install, wiring and first launch
- Developer Guide: the mental model and integration patterns
- Deployment Configuration: every
DLUX_*setting and environment variable - Reference: commands, routes, template tags and helpers
- Standalone .dlb Backup Viewer
- Migrating from django-microsys
- Changelog and Releasing
- Security Policy, Contributing Guide and Code of Conduct
License
DjangoLux is released under the MIT License.
Metadata
Release files for django-lux 1.17.0b1
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_lux-1.17.0b1.tar.gz | 3.6 MB | With provenance | Details for django_lux-1.17.0b1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_lux-1.17.0b1-py3-none-any.whl | Python 3 | none | any | Details for django_lux-1.17.0b1-py3-none-any.whl |
Total release size: 7.4 MB
Release files / django_lux-1.17.0b1.tar.gz
| Download URL | django_lux-1.17.0b1.tar.gz |
|---|---|
| Size | 3.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e880f0dcc867f2a5d35fa88c777f0635f6966508766ade46e3774184dedc2af2
|
|
BLAKE2b-256 checksum How to use checksums |
c75b179b3e8b1d22919c630aa8fe64ab1d8e554ab4dad620b9540c62a4b4d4d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / django_lux-1.17.0b1-py3-none-any.whl
| Download URL | django_lux-1.17.0b1-py3-none-any.whl |
|---|---|
| Size | 3.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3caf768a4d384fd9ec47c0d615e02a839d019c8a728e38ea4d3f516a21583ee4
|
|
BLAKE2b-256 checksum How to use checksums |
27180ae1cb689f9d35e66e7054fbcf5104ed54dd6df62c18e06075e4ccf0f052
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for django-lux 1.17.0b1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for django_lux-1.17.0b1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA 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.