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.

Source Distribution

django-sqlconsole-1.2.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

django_sqlconsole-1.2-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

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