Guest User

Untitled

a guest
Dec 18th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. return response, render_template('database.html')
  2. return render_template('database.html'), response
  3.  
  4. @app.route('/database')
  5. def database():
  6. # generate some file name
  7. # save the file in the `database_reports` folder used below
  8. return render_template('database.html', filename=stored_file_name)
  9.  
  10. @app.route('/database_download/<filename>')
  11. def database_download(filename):
  12. return send_from_directory('database_reports', filename)
Add Comment
Please, Sign In to add comment