Created
February 5, 2009 22:12
-
-
Save inklesspen/59050 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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