We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60234ad commit 99a1cddCopy full SHA for 99a1cdd
app.py
@@ -1,11 +1,11 @@
1
-from flask import Flask
+from flask import Flask, render_template
2
3
app = Flask(__name__)
4
5
6
-@app.route("/")
+@app.route('/')
7
def hello_world():
8
- return "<b>Hello, World!</b>"
+ return render_template('index.html')
9
10
11
if __name__ == '__main__':
templates/index.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>
+ Online Store
+ </title>
+ </head>
+
+ <body>
+ <p>Hello, World!</p>
+ </body>
12
+</html>
0 commit comments