Skip to main content

Django SQL Console

Sqlconsole is a django app that allows for the execution of sql queries from the admin section of a django site. An appropriate use case is when you don't have access to the database especially in a production environment.

SqlConsole is really meant to be used for database read queries eg:

SELECT * FROM <some_table>

SELECT count(*) FROM <some_table>

SQL queries that modify (INSERT, UPDATE etc) data are not supported.

Install

pip install django-sqlconsole

Add the app to INSTALLED_APPS

INSTALLED_APPS = [
...
'sqlconsole'
]

SqlConsole will be included in the admin section with a history of executed queries.

Permissions will be required to execute queries sqlconsole.can_execute_query

Screenshot

Example Query

Metadata

Release files for django-sqlconsole 1.4.0

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-sqlconsole 1.4.0
File Size Uploaded
django_sqlconsole-1.4.0.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-sqlconsole 1.4.0
File Interpreter ABI Platform
django_sqlconsole-1.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.6 kB

Release files / django_sqlconsole-1.4.0.tar.gz

Download URL django_sqlconsole-1.4.0.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5f88bcf0d56342d50b6bf7895389867e5461b56698d66edb9fe06e2997fa81b8
BLAKE2b-256 checksum
How to use checksums
7c7c0696c6c241dec0813f3b3805001f6c71d15a69440a532e4fcab5f23956e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / django_sqlconsole-1.4.0-py3-none-any.whl

Download URL django_sqlconsole-1.4.0-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
abc2ac15d083ff641358ed3e59664bc8ea22719ccb8e0aa14706ec384014eac6
BLAKE2b-256 checksum
How to use checksums
afcf630473fb0a2eeeb89cbdd163cf6d0007b4b967d9847ed0cb993af714e02f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.3

2 release files

1.2

2 release files

1.1

2 release files

1.0

2 release files

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