Skip to content

Instantly share code, notes, and snippets.

@fmasanori
Created February 12, 2013 13:08
Show Gist options
  • Save fmasanori/4762814 to your computer and use it in GitHub Desktop.
Save fmasanori/4762814 to your computer and use it in GitHub Desktop.
Hello Bottle World
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