File size: 1,141 Bytes
c94fc71 2e2d51b 7383143 2e2d51b 584e26b ec4a00e 6af0272 5c628c0 6c9c7cf 3c8422a 7383143 a65b02c 62d7688 7383143 aa0b554 | 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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | from flask import Flask, render_template
from werkzeug.middleware.profiler import ProfilerMiddleware
app = Flask(__name__)
app.debug = True
# Profile every request (or limit with restrictions)
#app.wsgi_app = ProfilerMiddleware(
# app.wsgi_app,
# restrictions=[30], # show top 30 lines
# sort_by=("tottime",) # total time spent in function body
#)
from efficiency_module import blueprint
app.register_blueprint(blueprint)
from color2_module import blueprint
app.register_blueprint(blueprint)
from color3_module import blueprint
app.register_blueprint(blueprint)
from exposure2_module import blueprint
app.register_blueprint(blueprint)
from exposure3_module import blueprint
app.register_blueprint(blueprint)
from quantity_module import blueprint
app.register_blueprint(blueprint)
@app.route('/', methods=['GET'])
def app_init():
return render_template(
"main.html",
tool_title="CHRIS: CHemical RISk calculators",
nav_links=[
],
footer_text="Office of Science and Engineering Laboratories · ",
contact_email="david.saylor@fda.hhs.gov",
)
if __name__ == '__main__':
app.run(port=8000)
|