summaryrefslogtreecommitdiff
path: root/myweb
diff options
context:
space:
mode:
Diffstat (limited to 'myweb')
-rw-r--r--myweb/demo/app.py11
-rw-r--r--myweb/demo/templates/index.html4
2 files changed, 15 insertions, 0 deletions
diff --git a/myweb/demo/app.py b/myweb/demo/app.py
new file mode 100644
index 0000000..86a9b08
--- /dev/null
+++ b/myweb/demo/app.py
@@ -0,0 +1,11 @@
+from flask import Flask, render_template
+
+app = Flask(__name__)
+
+@app.route('/')
+def index():
+ return render_template('index.html')
+
+if __name__ == '__main__':
+ app.run()
+
diff --git a/myweb/demo/templates/index.html b/myweb/demo/templates/index.html
new file mode 100644
index 0000000..c5c4431
--- /dev/null
+++ b/myweb/demo/templates/index.html
@@ -0,0 +1,4 @@
+
+<html>
+hello world!
+</html> \ No newline at end of file