Utility scripts for Ophot
This directory contains utility scripts which may be of use in developing Ophot or managing installed Ophot systems. A brief description of the scripts in this directory follows.
This README was last updated on 5 January 2012.
migratedb.py- migrates data from an old database to a new database if the new database schema is an extension of the old database schema
reset-db.sh- script which resets the database to an initial empty state (warning: this will remove any photos which have been uploaded to the application)
runserver.py- Python script which runs the Ophot Flask application in the current directory
For more information on how to use each script, see the documentation string in each module.
To run the unit tests for the scripts, run the following from the top-level directory (that is, the parent of this directory):
python -m unittest scripts.tests