Monitor the size of database tables from Django admin.
Project description
django-database-size
Adds a page to Django admin that lists the size of all tables in the database.
Installation
python setup.py install
Or via pip with:
pip install django-database-size
Install the appropriate view in /sql (currently only PostgreSQL and MySQL supported).
Add to your INSTALLED_APPS.
Usage
Browse to /admin/database_size/.
Development
To run unittests across multiple Python versions, install:
sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python-dev python3-dev python3.3-minimal python3.3-dev python3.4-minimal python3.4-dev python3.5-minimal python3.5-dev python3.6 python3.6-dev
To run all tests:
export TESTNAME=; tox
To run tests for a specific environment (e.g. Python 2.7 with Django 1.4):
export TESTNAME=; tox -e py39-django2
To run a specific test:
export TESTNAME=.test_example; tox -e py27-django15
To run the documentation server locally:
mkdocs serve -a :9999
To deploy documentation, run:
mkdocs gh-deploy --clean
To build and deploy a versioned package to PyPI, verify all unittests are passing, and then run:
python setup.py sdist
python setup.py sdist upload
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
Hashes for django-database-size-1.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2f4b7dda1f71a8b45f2f5a3b43c1a73e076a3f55ff53bbafb6b38762666cdc5 |
|
MD5 | 3499178f1239c2908b981ba187a16b96 |
|
BLAKE2b-256 | 837ddc197be635117cae7dfb9b1e49211e2a15b4dd78426ac6febbc66e232e67 |