From 547bc6a144e4aa66968984658ec3416290a0156d Mon Sep 17 00:00:00 2001 From: Shubham Agarwal Date: Tue, 28 Mar 2023 23:52:24 +0530 Subject: [PATCH 1/4] Update Greeting --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index d82c51f0d..a91bfbff4 100644 --- a/app.py +++ b/app.py @@ -3,4 +3,4 @@ @app.route('/') def hello_world(): - return 'Hello, World!' + return 'Hello, Yukti!' From 5245deecf3746982dc96623aa4b7cf1f55d38a84 Mon Sep 17 00:00:00 2001 From: Shubham Agarwal Date: Wed, 29 Mar 2023 00:01:04 +0530 Subject: [PATCH 2/4] Update With Image --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index a91bfbff4..34e7d2eb2 100644 --- a/app.py +++ b/app.py @@ -3,4 +3,5 @@ @app.route('/') def hello_world(): - return 'Hello, Yukti!' + return 'Italian Trulli +' From 224eb4a27b3a21e3de668748a136f552d82ccdbf Mon Sep 17 00:00:00 2001 From: Shubham Agarwal Date: Wed, 29 Mar 2023 00:10:03 +0530 Subject: [PATCH 3/4] Image Render --- app.py | 5 ++--- hello.html | 10 ++++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 hello.html diff --git a/app.py b/app.py index 34e7d2eb2..0c1a78975 100644 --- a/app.py +++ b/app.py @@ -1,7 +1,6 @@ -from flask import Flask +from flask import Flask, render_template app = Flask(__name__) @app.route('/') def hello_world(): - return 'Italian Trulli -' + return render_template('hello.html') diff --git a/hello.html b/hello.html new file mode 100644 index 000000000..9bbf8d319 --- /dev/null +++ b/hello.html @@ -0,0 +1,10 @@ + + + + + Rendering Local Images Using Flask + + + Italian Trulli + + From 04421db89b95aff8042caf32c6fcfc76e0d9bf54 Mon Sep 17 00:00:00 2001 From: Shubham Agarwal Date: Wed, 29 Mar 2023 00:18:54 +0530 Subject: [PATCH 4/4] moved to templates --- hello.html => templates/hello.html | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename hello.html => templates/hello.html (100%) diff --git a/hello.html b/templates/hello.html similarity index 100% rename from hello.html rename to templates/hello.html