A step-by-step guide to using Django ORM in standalone mode—without a full Django project—to connect to and query an existing SQLite database. The approach uses a minimal single-file setup with `settings.configure()`, the `inspectdb` command to auto-generate models from an existing schema (e.g., Firefox's `places.sqlite`), and
Table of contents
IntroductionDatabases you already useMinimal Django projectVerifying the database connectionGenerating models from an existing database with inspectdbQuerying an existing database with Django ORMRecapPractical use casesSort: