python flask display image on a html page
python flask display image on a html page Question: I am trying to pass a filename of an image and render it on a template, Although I am passing the actual name through it does not display on the page @app.route(‘/’, methods=[‘GET’,’POST’]) @app.route(‘/start’, methods=[‘GET’,’POST’]) def start(): person_to_show = ‘tim’ profilepic_filename = os.path.join(people_dir, person_to_show, “img.jpg”) return …
Total answers: 1