-
Notifications
You must be signed in to change notification settings - Fork 8
/
actors.py
27 lines (22 loc) · 979 Bytes
/
actors.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from flask import *
student = Blueprint("student",__name__, static_folder="static", template_folder="templates/student")
@student.route("/<username>/dashboard")
def student_index(username = session["username"]):
if(session):
return render_template("index.html", username = username)
else:
return redirect("/login");
faculty = Blueprint("faculty",__name__, static_folder="static", template_folder="templates/faculty")
@faculty.route("/<username>/dashboard")
def faculty_index(username = session["username"]):
if(session):
return render_template("index.html", username = username)
else:
return redirect("/login");
admin = Blueprint("faculty",__name__, static_folder="static", template_folder="templates/faculty")
@admin.route("/<username>/dashboard")
def admin_index(username = session["username"]):
if(session):
return render_template("index.html", username = username)
else:
return redirect("/login");