Skip to content

Instantly share code, notes, and snippets.

@fkumro
Created March 23, 2011 18:25
Show Gist options
  • Save fkumro/883640 to your computer and use it in GitHub Desktop.
Save fkumro/883640 to your computer and use it in GitHub Desktop.
webpy sub applications
import web
from controllers import blog
urls = (
'/blog', blog.app
)
app = web.application(urls, locals())
if __name__ == "__main__":
app.run()
import web
from controllers import categories
urls = (
'/categories', categories.app,
)
app = web.application(urls, locals())
import web
urls = (
'/index', "index",
)
class index:
def GET(self):
return "[GET] /blog/categories/index called"
app = web.application(urls, locals())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment