Question 13
Consider the following flask app and the bodies of two index.html files shown in the figure below.
app.py
from flask import Flask, render_templateimport sys
app = ========= app object initialization here ===========
@app.route('/home')def home(): return render_template('index.html')
app.run()app_templates/index.html
<h3>Home page</h3><p>MAD I focuses on backend development</p><h5>IITM ONLINE DEGREE</h5>root_templates/index.html
<h3>Home page</h3><p>Vue JS is a frontend technology</p><h5>IITM BS DEGREE</h5>If the app is run locally using the command
python app.py root_templates app_templates,
and the output on browser for URL http://127.0.0.1/home is:
Home page
Vue JS is a frontend technology
IITM BS DEGREE
How should the app be initialized to get the desired output on the browser?