Skip to main content

sql console is an app which allows for the execution of sql queries in the admin section of django.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_sqlconsole-1.4.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

django_sqlconsole-1.4.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file django_sqlconsole-1.4.0.tar.gz.

File metadata

  • Download URL: django_sqlconsole-1.4.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for django_sqlconsole-1.4.0.tar.gz
Algorithm Hash digest
SHA256 5f88bcf0d56342d50b6bf7895389867e5461b56698d66edb9fe06e2997fa81b8
MD5 3075f47d1b15f3644424472a2426377e
BLAKE2b-256 7c7c0696c6c241dec0813f3b3805001f6c71d15a69440a532e4fcab5f23956e3

See more details on using hashes here.

File details

Details for the file django_sqlconsole-1.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_sqlconsole-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 abc2ac15d083ff641358ed3e59664bc8ea22719ccb8e0aa14706ec384014eac6
MD5 022399e7293dce3cec5b8a000674e1f7
BLAKE2b-256 afcf630473fb0a2eeeb89cbdd163cf6d0007b4b967d9847ed0cb993af714e02f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page