python - Cannot access bottle development server -
i trying run bottle hello world example:
from bottle import route, run @route('/hello') def hello(): return "hello world!" run(host='localhost', port=8080, debug=true) i run file , following in command prompt:
bottle v0.12.9 server starting (using wsgirefserver())... listening on http://localhost:8080/ hit ctrl-c quit. however, when visit http://localhost:8080/hello default "server not found" page firefox.
Comments
Post a Comment