Python Forum

Full Version: New to Flask
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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")
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.