forked from xboxertony/taipei-day-trip-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
37 lines (30 loc) · 866 Bytes
/
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
from flask import *
import os
import member
from attraction import site
from booking import trip
from payment import pay
app=Flask(__name__, template_folder="templates")
app.secret_key = os.urandom(24)
app.config["JSON_AS_ASCII"]=False
app.config["TEMPLATES_AUTO_RELOAD"]=True
app.config['JSON_SORT_KEYS'] = False
# Pages
@app.route("/")
def index():
return render_template("index.html")
@app.route("/attraction/<id>")
def attraction(id):
return render_template("attraction.html")
@app.route("/booking")
def booking():
return render_template("booking.html")
@app.route("/thankyou")
def thankyou():
return render_template("thankyou.html")
app.register_blueprint(member.user, url_prefix='')
app.register_blueprint(site)
app.register_blueprint(trip)
app.register_blueprint(pay)
if __name__=="__main__":
app.run(host='0.0.0.0',port=3000, use_reloader=False)