In some cases I want to render a template and in others I want to serve the template file. I passed the same path to render_template
and send_file
, but only send_file
worked.
resp = render_template('templates/index.html')
resp = send_file('templates/index.html')