Launch Harlequin, the SQL IDE for your Terminal, with your Django database configuration.
Work smarter and faster with my book Boost Your Django DX which covers many tools to improve your development experience.
Requirements
Python 3.9 to 3.14 supported.
Django 4.2 to 6.0 supported.
Supported database backends: MariaDB/MySQL, PostgreSQL, SQLite.
Installation
First, install with pip:
python -m pip install django-harlequin
Second, install Harlequin with appropriate Harlequin adapter packages for the database backends you use. For example, to install Harlequin with the PostgreSQL adapter:
python -m pip install 'harlequin[postgres]'
Harlequin does not need to be installed in the same virtual environment as Django, as django-harlequin does not import it. You only need the harlequin command on your path, so you can install Harlequin globally, or in an isolated virtual environment with a tool like pipx.
Third, add the app to your INSTALLED_APPS setting:
INSTALLED_APPS = [
...,
"django_harlequin",
...,
]
Usage
harlequin command
Run the harlequin management command to launch Harlequin, connected to your default database:
$ ./manage.py harlequin
Pass --database to select a different database connection from settings.DATABASES:
$ ./manage.py harlequin --database replica
Extra options, optionally after a -- delimiter, will be passed through to Harlequin. For example, to read its help page, as opposed to that of the management command:
$ ./manage.py harlequin -- --help
Configuration
Harlequin automatically loads configuration from pyproject.toml or its own files within the current working directory, which would mean next to your manage.py file. See Harlequin’s configuration documentation for details on the available options.
Metadata
Release files for django-harlequin 1.7.0
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 | |
|---|---|---|---|---|
| django_harlequin-1.7.0.tar.gz | 7.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_harlequin-1.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.5 kB
Release files / django_harlequin-1.7.0.tar.gz
| Download URL | django_harlequin-1.7.0.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
594573df3d17fc489461fd796aa30d494a52a34cb8c619b52353eb44f34ae055
|
|
BLAKE2b-256 checksum How to use checksums |
4af4bcb3a348883bede22ecf9554b709105b529de775f0759554a3db8f03b9ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Sep 18, 2025.
Transparency logRelease files / django_harlequin-1.7.0-py3-none-any.whl
| Download URL | django_harlequin-1.7.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f901329e62e871a093dde822927f948d691d15dcc58949a33fc5e46b3b75595d
|
|
BLAKE2b-256 checksum How to use checksums |
313e5aac3f08d2318c8c8401113706a6e1781c3ceb0187bdfbb40c188fb5c3ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Sep 18, 2025.
Transparency logSecurity for django-harlequin 1.7.0
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for django_harlequin-1.7.0.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 Sep 18, 2025.
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.