fixed html file names
This commit is contained in:
@@ -5,13 +5,13 @@ app = Flask(__name__)
|
|||||||
|
|
||||||
@app.route('/hello')
|
@app.route('/hello')
|
||||||
def hello():
|
def hello():
|
||||||
hello_url = url_for ('static', filename='app3.html')
|
hello_url = url_for ('static', filename='app3_s.html')
|
||||||
return redirect(hello_url)
|
return redirect(hello_url)
|
||||||
|
|
||||||
@app.route('/greeting')
|
@app.route('/greeting')
|
||||||
def greeting():
|
def greeting():
|
||||||
msg = "Hello from Python"
|
msg = "Hello from Python"
|
||||||
return render_template('app3.html', greeting=msg)
|
return render_template('app3_d.html', greeting=msg)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run()
|
app.run()
|
||||||
|
|||||||
Reference in New Issue
Block a user