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
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_sqlconsole-1.4.0.tar.gz | 8.2 kB | Without provenance | Details for django_sqlconsole-1.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_sqlconsole-1.4.0-py3-none-any.whl | Python 3 | none | any | Details for django_sqlconsole-1.4.0-py3-none-any.whl |
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
|
Security for django-sqlconsole 1.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.