forked from anmolgup/Bookvibes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
40 lines (30 loc) · 850 Bytes
/
app.py
File metadata and controls
40 lines (30 loc) · 850 Bytes
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
from flask import *
app= Flask(__name__)
app.secret_key='mysecretkey'
@app.route('/')
def homepage():
return(render_template("homepage.html"))
@app.route('/signup')
def signup():
return(render_template("signup.html"))
@app.route('/signin')
def signin():
return(render_template("signin.html"))
@app.route('/bookpage')
def bookpage():
return(render_template("bookpage.html"))
@app.route('/welcome')
def welcome():
return(render_template("welcome.html"))
@app.route('/book')
def book():
return(render_template("book.html"))
@app.route('/search_res', methods = ['POST', 'GET'])
def search_res():
result = request.form
return(render_template("search_res.html", result=result))
@app.errorhandler(404)
def pgntfnd(y):
return(render_template("error404.html"))
if (__name__ == '__main__'):
app.run(debug=True)