Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (19 sloc) 691 Bytes
layout title
Subdir application

Subdir application

A subdir application lets you run various mount points on the same hostname, but switched based on directory mount point.

This example assumes you have applications already working and called "app" defined in, and

Example code

import wiki 
import blog 
import auth 

mapping = ( 

app = web.subdir_application(mapping)

if __name__ == '__main__:

Now, going to /wiki/ will send the trailing / to the, and its return data will be displayed as normal.