fixed html file names

This commit is contained in:
muassif 2021-08-13 14:52:59 +04:00 committed by GitHub
parent 1eb709f83a
commit 9d7143dfdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,13 +5,13 @@ app = Flask(__name__)
@app.route('/hello')
def hello():
hello_url = url_for ('static', filename='app3.html')
hello_url = url_for ('static', filename='app3_s.html')
return redirect(hello_url)
@app.route('/greeting')
def greeting():
msg = "Hello from Python"
return render_template('app3.html', greeting=msg)
return render_template('app3_d.html', greeting=msg)
if __name__ == '__main__':
app.run()