I was messing around with learning python myself, was working on a little HTML website using python. Anyone could please explain the differences between the two applications below?
When it's written like this it doesn't work. (this is an example I got from the top result from google)
@app.route('/index')
def index():
return render_template('index.html')
doesn't works
but when I include the full link .html
@app.route('/index.html')
def index():
return render_template('index.html')
it works?