fixed html file names
This commit is contained in:
parent
1eb709f83a
commit
9d7143dfdf
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user