'Flask, Not Found The requested URL was not found on the server

i am following the https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-iii-web-forms After i did the tutorial, and ran the flask program, it showed out the "Not Found The requested URL was not found on the server. " I have a github link to my directory below, please check it out. Thanks in advance. I am using a windows 10 on python 3.8.9. I use VS code.

Github: https://github.com/HoHoHoCCH/flaskHelp

Here is my routes code if there is anything wrong there:

from flask import render_template
from app import app
from app.forms import LoginForm

app.route('/login/')
def login():
    form = LoginForm()
    return render_template('login.html', title='Sign In', form=form)


Solution 1:[1]

can you tell what is in the address bar of your browser and how you are running the app. try removing the extra slash after login in you route.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 charchit