Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import web
- urls = (
- '/', 'index'
- '/secret','secret'
- )
- class index:
- def GET(self):
- return "Hello, world!"
- class secret:
- def GET(self):
- return "Secret Area :)"
- if __name__ == "__main__":
- app = web.application(urls, globals())
- app.run()
Add Comment
Please, Sign In to add comment