Django app for building dashboards using raw SQL queries
Project description
django-sql-dashboard
Django app for building dashboards using raw SQL queries
Brings a useful subset of Datasette to Django.
Currently only works with PostgreSQL.
This is very early alpha. You should not yet trust this code, especially with regards to security. Do not run this in production (yet)!
Installation
Install this library using pip
:
$ pip install django-sql-dashboard
Usage
Add "django_sql_dashboard"
to your INSTALLED_APPS
.
Add the following to your urls.py
:
from django.urls import path
from django_sql_dashboard.views import dashboard, dashboard_index
urlpatterns = [
path("dashboard/", dashboard_index, name="django_sql_dashboard-index"),
path("dashboard/<slug>/", dashboard),
# ...
]
Now visit /dashboard
as a staff user to start trying out the dashboard.
Development
To contribute to this library, first checkout the code. Then create a new virtual environment:
cd django-sql-dashboard
python -mvenv venv
source venv/bin/activate
Or if you are using pipenv
:
pipenv shell
Now install the dependencies and tests:
pip install -e '.[test]'
To run the tests:
pytest
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file django-sql-dashboard-0.1a0.tar.gz
.
File metadata
- Download URL: django-sql-dashboard-0.1a0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73b08efc9a6bad92f7eae163aba833faee4fec1d1da43a0ed6cb3c4dd9162d61 |
|
MD5 | de6541c1c5644cec631d7af1c69fb40d |
|
BLAKE2b-256 | a67f0b30232e73c93fbc23d8117e9894a7c7d68ede6271ce4bc2a524a988e0c8 |
File details
Details for the file django_sql_dashboard-0.1a0-py3-none-any.whl
.
File metadata
- Download URL: django_sql_dashboard-0.1a0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b55e13ffc8f8386342ec059e6718f7b5673b0a58d720289030e8495729b424b3 |
|
MD5 | aeb4777af185d087d1d205c5ef4afd19 |
|
BLAKE2b-256 | a5a7d3b189169cfbc68d92453e07c7d2cfd569315958c6ad55914610de9039d8 |