Committing source
This commit is contained in:
11
lab_app/hello.py
Executable file
11
lab_app/hello.py
Executable file
@ -0,0 +1,11 @@
|
||||
from flask import Flask
|
||||
from flask import render_template
|
||||
app = Flask(__name__)
|
||||
app.debug = True
|
||||
|
||||
@app.route("/")
|
||||
def hello():
|
||||
return render_template('hello.html', message="Hello World!")
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(host='0.0.0.0', port=8080)
|
Reference in New Issue
Block a user