forked from namitdoshi/car-damage-detective-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
29 lines (23 loc) · 815 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
from flask import Flask, render_template, flash, redirect
from forms import RegisterationForm, LoginForm
app = Flask(__name__)
app.config['SECRET_KEY'] = '1747afcc43886f257ed0860ec3bc98fd'
@app.route('/')
def index():
# form = LoginForm()
return render_template('index.html')
# return render_template('index.html', form=form)
# @app.route('/signup', methods=['GET', 'POST'])
# def signup():
# form = RegisterationForm()
# if form.validate_on_submit():
# flash(f'Account created for {form.email.data}!', 'success')
# return redirect(url_for('/'))
# else:
# print('Kataa')
# return render_template('signup.html', title='Register', form=form)
@app.route('/damage-detection')
def damage():
return render_template('upload-pictures.html')
if __name__ == '__main__':
app.run(debug=True)