Skip to main content

sql console is an app which allows for the exeuting 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.

Sqlconsole only works with the current LTS version of django (2.2).

Install

pip install django-sqlconsole

Add the app to INSTALLED_APPS

INSTALLED_APPS = [
...
'sqlconsole'
]

Add the console url to the projects base urls.py file

urlpatterns = [
...,
path(
        "admin/console/",
        include(("sqlconsole.urls", "sqlconsole"), namespace="console"),
    ),
]

Go the url localhost:8000/admin/console to start entering queries.

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.

Files for django-sqlconsole, version 1.2
Filename, size File type Python version Upload date Hashes
Filename, size django_sqlconsole-1.2-py3-none-any.whl (5.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-sqlconsole-1.2.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page