Skip to content

Instantly share code, notes, and snippets.

@fmasanori
Last active February 26, 2018 12:30
Show Gist options
  • Save fmasanori/5922929 to your computer and use it in GitHub Desktop.
Save fmasanori/5922929 to your computer and use it in GitHub Desktop.
Tutorial bottle 01
import bottle
#this is the handler for the root address on the web browser
@bottle.route('/')
def home_page():
return 'Hello Bottle World\n'
@bottle.route('/testpage')
def test_page():
return 'Oficina MongoDB e Python no FISL'
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