Oct-12-2021, 08:35 AM
(This post was last modified: Oct-12-2021, 08:35 AM by Annoogy.
Edit Reason: Always get Error page not found 404
)
I am new to pythond and flask.. I downloade pycharm and trying to do a simple web app, when I try to opne an html page fron index always get 404 error the server has not this page. Two days now searching and tried all options. Wish any one can help me as soon as possible I am stuck. What is the issue???????
Screen shots attached
Screen shots attached
from flask import Flask, render_template app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/loginnew') def loginnew(): return render_template('loginnew.html') if __name__ == '__main__': app.run(debug=True)
Output:127.0.0.1 - - [12/Oct/2021 12:35:52] "GET /loginnew.html HTTP/1.1" 404 -