-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication.py
More file actions
27 lines (23 loc) · 923 Bytes
/
application.py
File metadata and controls
27 lines (23 loc) · 923 Bytes
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 Flask, render_template
#########################################################################
# Database SQL Operations import
# (remove .gitmodules, the tech_team_database subdirectory, and the
# following lines if not connecting app to database.)
#########################################################################
from tech_team_database.dependencies.DatabaseSQLOperations import TpSQL
tpSQL = TpSQL(schema='tp2022')
#########################################################################
# End Database SQL Operations import
#########################################################################
application = Flask(__name__)
# landing page
@application.route('/index')
@application.route('/')
def index():
data = {
'name' : 'Tree-Plenish',
'number' : 123
}
return render_template("index.html", data=data)
if __name__ == "__main__":
application.run()