It took a lot of time to execute the step, so make a note
# bottle install
pip install bottle
index.py
#Specify hostname and port according to debug settings
import pydevd
pydevd.settrace('localhost', port=8080, stdoutToServer=True, stderrToServer=True)
from bottle import Bottle, run, template
apps = Bottle()
@apps.get('/index') # or @route('/login')
def login():
print 'Hello!' #Try to put a break point
return template("index")
run(app=apps, host='localhost', port=8080)
views/index.tpl
World!
Recommended Posts