Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

DjangoLux — A Modern UX/UI Framework for Django

PyPI version Python versions Django versions License Downloads

DjangoLux Logo

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-backed SystemSettings over the DLUX_CONFIG fallback, 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 .dlb viewer; 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: DluxTable with 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()), root dlux.urls, app scaffolds, ScopedModel with 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

  1. 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())
    
  2. Mount dlux.urls at the project root, which serves /accounts/... and /sys/....

    from django.urls import include, path
    
    urlpatterns = [
        path("", include("dlux.urls")),
    ]
    
  3. 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

License

DjangoLux is released under the MIT License.

Metadata

Release files for django-lux 1.16.5b1

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-lux 1.16.5b1
File Size Uploaded Provenance Actions
django_lux-1.16.5b1.tar.gz 3.5 MB With provenance Details for django_lux-1.16.5b1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-lux 1.16.5b1
File Interpreter ABI Platform Actions
django_lux-1.16.5b1-py3-none-any.whl Python 3 none any Details for django_lux-1.16.5b1-py3-none-any.whl

Total release size: 7.4 MB

Release files / django_lux-1.16.5b1.tar.gz

Download URL django_lux-1.16.5b1.tar.gz
Size 3.5 MB
Tags Source
SHA-256 checksum
How to use checksums
08df3633e6541e8e91bedf9b57f790bf54f6597a4e627d97016423e36d441bef
BLAKE2b-256 checksum
How to use checksums
b0363992d2c4068a3a3e179109b7785ff67632ab5a903df3da1e8a03d87357c8
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 24, 2026.

Transparency log

Release files / django_lux-1.16.5b1-py3-none-any.whl

Download URL django_lux-1.16.5b1-py3-none-any.whl
Size 3.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d79b3462995d07a0153cc384575bf0cc2618b6dd7417dce2446f1a93f7cb6e97
BLAKE2b-256 checksum
How to use checksums
6445cd3cbeb03d5102b610ae5af07f020dacaf8b085479bba9b30712fd9b5240
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 24, 2026.

Transparency log

Security for django-lux 1.16.5b1

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.

Select from 2 files

Attestation for django_lux-1.16.5b1.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 24, 2026.

Transparency log

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
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