I have been trying to get this working for a while with no luck.
Following instructions from the project site, I have the following.
from paste.deploy import loadapp application = loadapp('config:/home/barnsey/sites/sites.ini')
[composite:main] use = egg:Paste#urlmap / = home /qtile = qtile [app:home] use = egg:Paste#static document_root = %(here)s/htdocs [app:qtile] use = egg:Paste#static document_root = /home/barnesc/sites/qtile/docs
2012-11-21 16:37:07,404 :Traceback (most recent call last): 2012-11-21 16:37:07,405 : File "/usr/local/lib/python2.7/site-packages/paste/urlmap.py", line 201, in __call__ 2012-11-21 16:37:07,405 : environ['SCRIPT_NAME'] += app_url 2012-11-21 16:37:07,405 :KeyError: 'SCRIPT_NAME'