cleaning up test functions from app.py
This commit is contained in:
parent
f6ca5b2f7a
commit
30d1cbe904
10
app.py
10
app.py
@ -34,14 +34,6 @@ def home():
|
||||
def rules():
|
||||
return render_template("rules.html")
|
||||
|
||||
def home2(name):
|
||||
# app.route('/home2/<name>')
|
||||
# return redirect(url_for('home'))
|
||||
return render_template("home.html")
|
||||
|
||||
def success(name):
|
||||
return "welcome %s" % name
|
||||
|
||||
# this is a weird way to do this
|
||||
# right?
|
||||
def widg_fun(widg):
|
||||
@ -119,9 +111,7 @@ def login():
|
||||
return redirect(url_for('home'))
|
||||
|
||||
if __name__=="__main__":
|
||||
app.add_url_rule('/home2/<name>', 'home2', home2)
|
||||
app.add_url_rule('/rules', 'rules', rules)
|
||||
app.add_url_rule('/success/<name>', 'success', success)
|
||||
app.add_url_rule('/login', 'login', login, methods = ['POST', 'GET'])
|
||||
app.add_url_rule('/req', 'req', req, methods = ['POST', 'GET'])
|
||||
app.add_url_rule('/req/signup', 'signup', signup, methods = ['POST'])
|
||||
|
Loading…
Reference in New Issue
Block a user