python -m venv venv
source venv/bin/activate
pip install flask
flask --app flaskr run --debug
Go to init.py and add this code to create a new route for the application with /test that renders test.html
@app.route('/test')
def testpage():
return render_template('./test.html')
For this to work you need to create a html file in the templates folder called test.html & add a link to the navbar in homepage.html with
<nav>
<a href="/">Home</a>
<a href="/about">About</a>
<a href="/test">Test</a>
</nav>