Services contain a couple of scripts that are run as seperate wsgi instances on the services. Usually they are hosted on seperate domains. They are stand alone wsgi scripts. The goal is to avoid a whole pile of Django imports, middleware, sessions and so on that we really don’t need.
To run the scripts you’ll want a wsgi server. You can do this using gunicorn, for example:
pip install gunicorn
Then you can do:
cd services gunicorn --log-level=DEBUG -c wsgi/receiptverify.py -b 127.0.0.1:9000 --debug verify:application
curl -d "this is a bogus receipt" http://127.0.0.1:9000/verify/123