summaryrefslogtreecommitdiff
path: root/web/flask_proj/old
diff options
context:
space:
mode:
Diffstat (limited to 'web/flask_proj/old')
-rw-r--r--web/flask_proj/old/app.py14
-rw-r--r--web/flask_proj/old/templates/index.html20
2 files changed, 34 insertions, 0 deletions
diff --git a/web/flask_proj/old/app.py b/web/flask_proj/old/app.py
new file mode 100644
index 0000000..2c3abb8
--- /dev/null
+++ b/web/flask_proj/old/app.py
@@ -0,0 +1,14 @@
+from flask import Flask, render_template
+
+app = Flask(__name__)
+
+
+@app.route('/')
+@app.route('/home')
+def home():
+ # return "<h1 style='color: blue;'> hello world! </h1>"
+ return render_template('index.html')
+
+
+if __name__ == '__main__':
+ app.run(debug=True, port=5001)
diff --git a/web/flask_proj/old/templates/index.html b/web/flask_proj/old/templates/index.html
new file mode 100644
index 0000000..b9be263
--- /dev/null
+++ b/web/flask_proj/old/templates/index.html
@@ -0,0 +1,20 @@
+<!DOCUTYPE html>
+<html>
+<head>
+
+</head>
+<body>
+ <form>
+ <table>
+ <tr>
+ <td> Name: </td>
+ <td> <input type="text" name="" placeholder="name"></td>
+ </tr>
+ <tr>
+ <td> Password: </td>
+ <td> <input type="password" name="" placeholder="password"> </td>
+ </tr>
+ </table>
+ </form>
+</body>
+</html>