I’m trying to program my Flask Capstone Project in Visual Studio Code but encountering an issue in getting started⬇️
I’ve successfully upgraded Flask but received the following message why my base.html is not rendering properly incoordination with my index.html file. Any help would be greatly appreciated! (App.py, base.html and index.html code copied at the bottom below.)
ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
spyder 5.3.3 requires pyqt5<5.16, which is not installed.
spyder 5.3.3 requires pyqtwebengine<5.16, which is not installed.
anaconda-project 0.11.1 requires ruamel-yaml, which is not installed.
Successfully installed Flask-2.2.2 MarkupSafe-2.1.1 Werkzeug-2.2.2
APP.PY
from flask import Flask, render_template
from flask_sqlalchemy import SQLAlchemy
app = Flask(name)
@app.route(‘/’)
@app.route(‘/index.html’)
@app.route(‘/index’)
def home():
return render_template(‘index.html’)