From 53e5c9ec7024dc8c5225fbf875474872842ed332 Mon Sep 17 00:00:00 2001 From: zart2007 Date: Mon, 17 Apr 2023 15:04:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 2 +- templates/hello.html | 15 --------------- 2 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 templates/hello.html diff --git a/app.py b/app.py index b03dd88..c415770 100644 --- a/app.py +++ b/app.py @@ -19,7 +19,7 @@ def hello(): @app.route('/hello/') def hello_2(name): - return render_template('hello.html', name=name) + return render_template('index.html', name=name) if __name__ == '__main__': diff --git a/templates/hello.html b/templates/hello.html deleted file mode 100644 index 7cdb4f1..0000000 --- a/templates/hello.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - Hello from flask - - - {% if name %} -

hello {{ name }}!

- {% else %} -

Hello World!

- {% endif %} - - - \ No newline at end of file