Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @app.route('/login', methods = ['POST', 'GET'])
- def login():
- if request.method == 'POST':
- user = request.form['nm']
- password = request.form['pwd']
- if user_add(user, password) == True:
- return url_for('hello', name = user)
- else:
- return redirect(url_for('incorrect'))
- @app.route('/classes', methods = ['POST', 'GET'])
- def classes(name):
- ##Code to execute
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement