python manage.py syncdbto create the tables. :-)
python manage.py sample <package_name>will create a quick model, with the same name as the package settings in the environment variables. Use it for quickly testing if the script works.
python manage.py dispatchwill run the
send_allfunction in ptsapp/dispatch.py, which will read mail from stdin and start then start dispatching emails to appropriate users.
python manage.py dispatch <package_name>will dispatch the mail for a particular package.
You may have to use
sudo depending on the location of the log directory.
You can also run tests using
python manage.py test ptsapp. :-)