Flask 404 eroor - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: Flask 404 eroor (/thread-35247.html) |
Flask 404 eroor - Annoogy - Oct-12-2021 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 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)
RE: Flask 404 eroor - snippsat - Oct-12-2021 You should post code and not images,if had eg GitHub could clone all down easy. Look at this post so about.html will be same as your loginnew.html .Also if new so doing all PyCharm can be confusing,learn to use command line eg make folder files and test outside of PyCharm. Can still use PyCharm to watch files,but learing command line is very important. |