commit 8d62ffc93f014301c9d84d9aa27b054d896b9445
parent 77c71e8890e84b2dab726aaf6cf32ddc4cf68332
Author: KyleButera <buterak0@students.rowan.edu>
Date: Thu, 11 Apr 2019 13:17:45 -0400
Create propman_flask_app.py
Diffstat:
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git a/src/database/propman_flask_app.py b/src/database/propman_flask_app.py
@@ -0,0 +1,16 @@
+from flask import Flask, render_template, request, redirect, url_for, flash, Blueprint
+from propman_session import DBSession
+from propman_db_model import Consult_letter, Consult_letter_revision, Assessment_form, Assessment_form_revision, Employee, Library_form, Library_form_revision, Proposal, Sponsor, Supporting_document, Supporting_document_revision, Program_guide, Program_guide_revision
+from sqlalchemy import and_
+
+app = Flask(__name__)
+session = DBSession()
+bp = Blueprint('propman', __name__, template_folder='templates', static_folder='static')
+
+temp_path = './propman'
+
+@app.route('/')
+@bp.route('/')
+def propman():
+ return render_template('%s/propman.html' % temp_path)
+