Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shearichard/django-row-tracker

Dump row counts for all models in Project to database for analysis. A standalone script that can be pointed at any Django project.
https://github.com/shearichard/django-row-tracker

Last synced: about 10 hours ago
JSON representation

Dump row counts for all models in Project to database for analysis. A standalone script that can be pointed at any Django project.

Awesome Lists containing this project

README

        

django-row-counter
=========

Overview
--------
A stand-alone script which may be used to use row counts in all the models within a given Django project.

Each time the script is a row count for each model in each Application of the Project of interest and the results are written to a SQLite database.

Each run is timestamped and the user is able to supply a comment describing the situation for each run.

Multiple projects may be tracked within the same database.

Version
--------
1.1.

Virtenv
--------
With my testing to date which I have done is to activate the virtenv in which the target project normally runs and then run the script. There may be other valid approaches but that's what I've done so far.

Running
--------
The script is run as follows where `path-to-project-root` is the file path to the root of the project of interest relative to the location of `django-row-tracker.py`; and `project-name` is the name of the Django project of interest.

> python django-row-tracker.py path-to-project-root project-name

A directory with the name `django-row-tracker-data` should be created within the directory `django-row-tracker.py` is in to hold the SQLite database used to hold the results.