Python Forum
New to Flask - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: New to Flask (/thread-33170.html)



New to Flask - vj78 - Apr-04-2021

The code below displays hello

@app.route('/')
@app.route('/Login')
def Login():
    return "hello"
The below does not work:
@app.route('/')
@app.route('/Login')
def Login():
    return render_template("Login.html")



RE: New to Flask - snippsat - Apr-04-2021

Look at setup here.
Also show your folder setup,usually /Login should be own route.
Also like /about route show in basic setup in link.