Skip to content

Instantly share code, notes, and snippets.

@inklesspen
Created February 5, 2009 22:12
Show Gist options
  • Save inklesspen/59050 to your computer and use it in GitHub Desktop.
Save inklesspen/59050 to your computer and use it in GitHub Desktop.
from app_a import app as appA
from app_b import wsgi_app as appB
from paste.urlmap import URLMap
map_app = URLMap()
map_app['/blog'] = appA
map_app['/forum'] = appB
# now, just treat map_app as your WSGI app.
# A request for /blog/2009/09/hello_world will go to appA as /2009/09/hello_world
# A request for /forum/index?id=42 will go to appB as /index?id=42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment