Skip to content

Commit ff80f58

Browse files
committed
step 2 of tutorial
1 parent 2f6bfc2 commit ff80f58

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

app.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import redis
2+
from flask import Flask, request, render_template
3+
4+
app = Flask(__name__)
5+
6+
@app.route('/')
7+
def main():
8+
return render_template("main.html")
9+
10+
11+
if __name__ == "__main__":
12+
app.run()
13+

templates/main.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<html>
2+
<head><title>SF Python</title></head>
3+
<body>
4+
<h1>Welcome to the WWW of 1995!</h1>
5+
</body>
6+
</html>
7+

0 commit comments

Comments
 (0)