class_management_system

Senior Project - Spring 2019
Log | Files | Refs | README

propman_flask_app.py (683B)


      1 from flask import Flask, render_template, request, redirect, url_for, flash, Blueprint
      2 from propman_session import DBSession
      3 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
      4 from sqlalchemy import and_
      5 
      6 app = Flask(__name__)
      7 session = DBSession()
      8 bp = Blueprint('propman', __name__, template_folder='templates', static_folder='static')
      9 
     10 temp_path = './propman'
     11 
     12 @app.route('/')
     13 @bp.route('/')
     14 def propman():
     15 	return render_template('%s/propman.html' % temp_path)
     16