Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (18 sloc) 654 Bytes
layout title
Subdomain application

Subdomain application

Subdomain applications delegate requests based on host. This makes virtual hosting very easy. This works like a subdir application, only switches to the corresponding application based on host name instead of sub directory.


 import mainsite 
 import wiki
 import usersite

 mapping = ( 

 app = web.subdomain_application(mapping)

 if __name__ == '__main__':