Services contain a couple of scripts that are run as separate wsgi instances on the services. Usually they are hosted on separate 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/ -b --debug verify:application

To test:

curl -d "this is a bogus receipt"