Django web framework has a rich set of management commands. One of them is python manage.py dbshell
. This will launch the default database repl and connect to the appropriate database for the web application.
Now it is possible to launch pgcli
instead of the default psql
for Postgres by ...