summaryrefslogtreecommitdiff
path: root/wk9/lect/cookies/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'wk9/lect/cookies/app.py')
-rw-r--r--wk9/lect/cookies/app.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/wk9/lect/cookies/app.py b/wk9/lect/cookies/app.py
new file mode 100644
index 0000000..5101b69
--- /dev/null
+++ b/wk9/lect/cookies/app.py
@@ -0,0 +1,16 @@
+from flask import Flask, render_template, request, session
+
+app = Flask(__name__)
+
+app.config["SESSION_PERMANENT"] = False
+app.config["SESSION_TYPE"] = "filesystem"
+Session(app)
+
+@app.route("/")
+def index():
+ return render_template("index.html")
+
+
+@app.route("/login")
+def login():
+ retur render_template("login.html")