Skip to main content

Monitor the size of database tables from Django admin.

Project description

[![](]( [![Build Status](]( [![](](

Adds a page to Django admin that lists the size of all tables in the database.


python install

Or via pip with:

pip install django-database-size

Install the appropriate view in /sql (currently only PostgreSQL and MySQL supported).



Browse to /admin/database_size/.


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 py27-django15

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 sdist python sdist upload

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-database-size, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size django-database-size-1.0.2.tar.gz (6.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page