Initial commit.
This commit is contained in:
13
my_flask_app.py
Normal file
13
my_flask_app.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from flask import Flask, render_template
|
||||
|
||||
app = Flask(__name__)
|
||||
@app.route("/helloWorld")
|
||||
def hello():
|
||||
return "Hello world!"
|
||||
|
||||
@app.route("/")
|
||||
def home():
|
||||
return render_template('home.html', message='Hello, welcome!')
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run()
|
||||
Reference in New Issue
Block a user