Created
February 12, 2013 13:08
-
-
Save fmasanori/4762814 to your computer and use it in GitHub Desktop.
Hello Bottle World
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
import bottle | |
#this is the handler for the root address on the web browser | |
@bottle.route('/') | |
def home_page(): | |
return 'Hello Bottle World' | |
@bottle.route('/testpage') | |
def test_page(): | |
return 'Testing page' | |
bottle.debug(True) | |
bottle.run(host='localhost', port = 8082) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment