i am trying to run my app.py which is in flask with "python app.py" instead of "flask run". i have the following in the app.py. but when i run it via python, the html pages dont show up and says requested url not found. i am not sure what i am missing here.
keep in mind the app runs fine when i use flask run command. the webpage shows on the browser fine. but when i use the "python app.py" the browser says the url is not found. i am not sure if i need to redirect something or not
app = Flask(__name__)
if __name__ == "__main__":
app.run(host="10.147.180.15", port="80", debug=True)
@app.route('/')
def index():
return render_template("index.html")
any help will be greatly appreciate it