Created
March 23, 2011 18:25
-
-
Save fkumro/883640 to your computer and use it in GitHub Desktop.
webpy sub applications
This file contains hidden or 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
import web | |
from controllers import blog | |
urls = ( | |
'/blog', blog.app | |
) | |
app = web.application(urls, locals()) | |
if __name__ == "__main__": | |
app.run() |
This file contains hidden or 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
import web | |
from controllers import categories | |
urls = ( | |
'/categories', categories.app, | |
) | |
app = web.application(urls, locals()) |
This file contains hidden or 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
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