From 678fab50280b647d95213a9695d07c49542696f2 Mon Sep 17 00:00:00 2001 From: zhang Date: Sat, 21 May 2022 14:23:49 +0800 Subject: 0521 --- web/flask_proj/app.py | 14 ++++++++++++++ web/flask_proj/templates/index.html | 20 ++++++++++++++++++++ web/html_basics.html | 10 ++++++++++ 3 files changed, 44 insertions(+) create mode 100644 web/flask_proj/app.py create mode 100644 web/flask_proj/templates/index.html create mode 100644 web/html_basics.html (limited to 'web') diff --git a/web/flask_proj/app.py b/web/flask_proj/app.py new file mode 100644 index 0000000..2c3abb8 --- /dev/null +++ b/web/flask_proj/app.py @@ -0,0 +1,14 @@ +from flask import Flask, render_template + +app = Flask(__name__) + + +@app.route('/') +@app.route('/home') +def home(): + # return "

hello world!

" + return render_template('index.html') + + +if __name__ == '__main__': + app.run(debug=True, port=5001) diff --git a/web/flask_proj/templates/index.html b/web/flask_proj/templates/index.html new file mode 100644 index 0000000..b9be263 --- /dev/null +++ b/web/flask_proj/templates/index.html @@ -0,0 +1,20 @@ + + + + + + +
+ + + + + + + + + +
Name:
Password:
+
+ + diff --git a/web/html_basics.html b/web/html_basics.html new file mode 100644 index 0000000..08b5577 --- /dev/null +++ b/web/html_basics.html @@ -0,0 +1,10 @@ + + + + + +

hello world!

+ + + + \ No newline at end of file -- cgit v1.2.3