Skip to content

Instantly share code, notes, and snippets.

@k0emt
Created April 6, 2013 04:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k0emt/5324864 to your computer and use it in GitHub Desktop.
Save k0emt/5324864 to your computer and use it in GitHub Desktop.
Example of hello world in bottle with python
import bottle
@bottle.route('/')
def home_page():
return "Hello World\n"
@bottle.route('/testpage')
def test_page():
return "this is a test page"
bottle.debug(True)
bottle.run(host='localhost',port=8080)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment