1. python syncdb to create the tables. :-)

  2. python 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.

  3. python dispatch will run the send_all function in ptsapp/, which will read mail from stdin and start then start dispatching emails to appropriate users.

  4. Alternatively, python 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 test ptsapp. :-)