Johz

Untitled

Mar 12th, 2013
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. @app.route('/login', methods=['GET', 'POST'])
  2. def login():
  3.     if request.method == "GET":
  4.         return render_template('login.html', visitor=True)
  5.     elif request.method == "POST":
  6.         return render_template('login.html', user="hello")
Advertisement
Add Comment
Please, Sign In to add comment