Created
July 15, 2012 00:14
-
-
Save crosbymichael/3114004 to your computer and use it in GitHub Desktop.
Web.py Boilerplate
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
#!/usr/bin/env/ python | |
import web | |
urls = ('/', 'Index') | |
application = web.application(urls, globals()) | |
web.config.debug = True | |
class Index: | |
def GET(self, name=''): | |
return 'Hello World' | |
def POST(self): | |
return 'Hello World' | |
if __name__ == '__main__': | |
application.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment