-
Notifications
You must be signed in to change notification settings - Fork 0
/
eriver.py
46 lines (29 loc) · 818 Bytes
/
eriver.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
from flask import Flask, render_template
from flask.ext.bootstrap import Bootstrap
app = Flask(__name__)
bootstrap = Bootstrap(app)
# Import from configuration
app.config.from_object('config')
@app.route("/")
def index():
return render_template('home.html')
@app.route("/events")
def events():
return render_template('events.html')
@app.route("/info")
def info():
return render_template('info.html')
@app.route("/libraries")
def libraries():
return render_template('libraries.html')
@app.route("/schools")
def schools():
return render_template('schools.html')
@app.route("/officials")
def officials():
return render_template('officials.html')
@app.context_processor
def inject_ga():
return dict(GA_ID=app.config["GA_ID"])
if __name__ == "__main__":
app.run(debug=True)