Answer the question
In order to leave comments, you need to log in
Navigating @route to bottle, how to do it right?
Good afternoon.
Prompt, I form a route with html page.
button on the page. How to bind the next route to this button.
- went to the route /index
- clicked on the button and went to the route /A1
from bottle import run, route
@route('/index')
def f_index():
return("""
<html>
<form action="/A1" method="post">
<input value="A1" type="submit" />
</form>
""")
@route('/A1')
def A1():
return("""
<html>
Hello world !
</form>
</html>
""")
run(host='localhost', port="8080", debug=True)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question