Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. @app.route('/a', methods=['GET', 'POST'])
  2. def a():
  3. form = data(request.form)
  4.  
  5. if form.validate_on_submit():
  6. job = Job()
  7. job.title = form.title.data
  8.  
  9. return redirect(url_for('users.b'))
  10.  
  11.  
  12. @app.route('/b', methods=['GET', 'POST'])
  13. def b():
  14. #access here the job.title previous defined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement