I am quite new to bottlepy, started with hello world but cant get it working.
this is the code.
from bottle import route, run
@route('/hello')
def hello():
return "Hello World!"
run(host='localhost', port=8080, debug=True)
and I am pointing my browser to http://hostname:8080/ or http://ipaddress:8080/
but i always get error saying could not connect.
any ideas?
thanks
Please add
before
@route('/hello'), then you can visithttp://localhost:8080.If it still does not work, I think you need to try to put
bottle.pylib file into your project root dir either.