diff options
Diffstat (limited to 'wk9/lect/hello')
-rw-r--r-- | wk9/lect/hello/app.py | 7 | ||||
-rw-r--r-- | wk9/lect/hello/templates/index.html | 11 |
2 files changed, 18 insertions, 0 deletions
diff --git a/wk9/lect/hello/app.py b/wk9/lect/hello/app.py new file mode 100644 index 0000000..bb88884 --- /dev/null +++ b/wk9/lect/hello/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/hello/templates/index.html b/wk9/lect/hello/templates/index.html new file mode 100644 index 0000000..28aaf9f --- /dev/null +++ b/wk9/lect/hello/templates/index.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> + +<html lang="en"> + <head> + <meta name="viewport" content="initial-scale=1, width=device-width"> + <title>hello</title> + </head> + <body> + Hello, World + </body> +</html> |