Here is a minimal application with Flask:
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return 'Hello, World!'
I know index() is the view function. [Q1] The question is, I can't tell exactly which part is route and which part is view. I didn't find the clarity definitions about them in Documentation.
[Q2] The wording below make me confused, which one is wrong?
- index view
- index route
/route
[Q3] Could I say the button below was *pointed to index *view?
<a href="{{ url_for('index') }}">Button</a>
Thanks!