Question 16
Consider the following flask application "app.py" given below.
import sysfrom flask import Flask, render_template
app = Flask(__name__, static_folder = 'stationary')
@app.route('/')def func(): folder_1 = sys.argv[1] folder_2 = sys.argv[2]
if app.static_folder == folder_1: return f"<h1>Static folder verified: {folder_1}</h1>"
if app.static_folder == folder_2: return f"<h1>Static folder verified: {folder_2}</h1>"
return "<h1>Invalid argument</h1>"
app.run(debug = True)If the application is running locally on http://127.0.0.1:5000. What will be rendered by the browser for the command:
python app.py /static /stationary