-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
66 lines (50 loc) · 1.37 KB
/
app.py
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import os
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def hello():
return render_template('hello.html')
@app.route('/dino')
def dinosaur():
return render_template('dino.html')
@app.route('/activities')
def act():
return render_template('activities.html')
@app.route('/additionalinfo')
def addinfo():
return render_template('addinfo.html')
@app.route('/resume')
def resume():
return render_template('dino.html')
@app.route('/mit')
@app.route('/MIT')
def MIT():
return render_template('MIT.html')
@app.route('/sigma')
def sig():
#import scraper
#scraper.make_graph()
return render_template('cat.html',name='MALgraph.gexf')
@app.route('/college')
def col():
#return 'hi'
return render_template('cmain.html')
@app.route('/reader')
def reader():
return render_template('reader.html')
#@app.route('/css/<path:fnc>')
def css_static(fn):
return send_from_directory('/css/',fnc)
#@app.route('/static/<path:fns>')
def static(fn):
return send_from_directory('/static/',fns)
#@app.route('/js/<path:fnj>')
def js_static(fn):
return send_from_directory(app.config['JS_STATIC'],fnj)
@app.route('/temp/<name>')
def temp(name=None):
return render_template('display.html',name=name)
if __name__ == '__main__':
# Bind to PORT if defined, otherwise default to 5000
port = int(os.environ.get('PORT',5000))
app.run(host='0.0.0.0',port=port,debug=True)