Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/shearichard/django-row-tracker
- Owner: shearichard
- License: bsd-3-clause
- Created: 2015-02-18T08:52:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-03-05T09:01:48.000Z (over 9 years ago)
- Last Synced: 2023-03-22T16:57:10.063Z (over 1 year ago)
- Language: Python
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.