diff options
-rw-r--r-- | wk9/lect/app.py | 7 | ||||
-rw-r--r-- | wk9/lect/templates/index.html (renamed from wk9/lect/index.html) | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/wk9/lect/app.py b/wk9/lect/app.py new file mode 100644 index 0000000..bb88884 --- /dev/null +++ b/wk9/lect/app.py @@ -0,0 +1,7 @@ +from flask import Flask, render_template, request + +app = Flask(__name__) + +@app.route("/") +def index(): + return "hello, world" diff --git a/wk9/lect/index.html b/wk9/lect/templates/index.html index 1bfdc87..28aaf9f 100644 --- a/wk9/lect/index.html +++ b/wk9/lect/templates/index.html @@ -5,4 +5,7 @@ <meta name="viewport" content="initial-scale=1, width=device-width"> <title>hello</title> </head> + <body> + Hello, World + </body> </html> |