Started moving SFU over to Flask

This commit is contained in:
Dan Dembinski
2019-06-28 14:23:10 -04:00
parent c9e8e3cdbf
commit ecb9757fb5
5 changed files with 184 additions and 135 deletions

3
app/SFU.py Normal file
View File

@@ -0,0 +1,3 @@
from app import app

7
app/__init__.py Normal file
View File

@@ -0,0 +1,7 @@
from flask import Flask
app = Flask(__name__)
from app import routes

13
app/routes.py Normal file
View File

@@ -0,0 +1,13 @@
from app import app
from flask import render_template
from main import loadClients
@app.route('/')
@app.route('/index')
def index():
ClientName = []
ClientName = loadClients()
return render_template('index.html', title='SFU', ClientName=ClientName)

12
app/templates/index.html Normal file
View File

@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
{% for x in ClientName %}
{{ ClientName }} <br>
{% endfor %}
</body>
</html>