When SaaS Is Not Allowed: Shipping Django as a Desktop App
summary
A production pattern shows Django run as a desktop app by packaging a local Django server, background workers and SQLite into an Electron shell — used to ship Steel‑IQ (≈100k LOC, 15 people, shipped Nov 2025) that runs multi‑day, 16 GB simulations locally and succeeds in production. Key tooling: Electron wrapper, Python‑standalone relocatable venv, task queue for long jobs. Important details: localhost binding, CSRF and DNS‑rebind mitigations, preload bridge to isolate Node access, macOS signing/notarization and large (~350 MB) bundles. Alternatives: Tauri, PyInstaller, pure‑Python frontends.
AI-written summary · about
chapters (13)
- 0:00Introduction and speaker background
- 1:31Why Django as a desktop app
- 4:27Electron app prototype success
- 7:16Demo app architecture
- 10:31Background tasks and SQLite
- 11:13Security challenges in Electron
- 12:57Packaging and platform issues
- 15:04Live demo attempt
- 18:24Wrapping existing Django apps
- 20:51Automating app wrapping with a script
- 21:33Alternatives to Electron
- 24:23Summary and key takeaways
- 25:47Q&A session
