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>
For queries that modify data eg:
DELETE FROM <some_table> WHERE ID=<some_id>
only a success or error message will be shown
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
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
Built Distribution
Hashes for django_sqlconsole-1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c1fb09afa0f6bff936da477834f1fe394ccace054205578134b7beda911b33e |
|
MD5 | 864073f17cb79c8f6218edafb7a8fc8e |
|
BLAKE2b-256 | 975becd90b27cffa4aa742be910f3ad78da0fa2d6c843875c84e24519d048e87 |