lundi 21 décembre 2020

Image not rendering on website using Flask

I am a newbie to Flask.I am creating my first project on Flask titled Image Processing using OpenCV.The home page consists of clickable cards which on clicking will direct users to the suitable pages.In the home page I want to insert a welcome gif but it seems that Flask is not able to render image on the browser despite providing the right link in the src attribute of img's tag.The relevant img tag

<img src="/static/images/welcome.gif" />  

The project structure

Routes.py code

@app.route('/')
@app.route('/options',methods=['GET','POST'])
def options():
    return render_template('options.html')
    

Help will be highly appreciated




Aucun commentaire:

Enregistrer un commentaire