LuisEdu

Untitled

Jul 31st, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. from flask import Flask, render_template
  2.  
  3. app = Flask(__name__,template_folder='template')
  4.  
  5. @app.route("/<filename>")
  6. def html_page(filename):
  7. return render_template("index.html", filename=filename)
  8.  
  9. if __name__ == "__main__":
  10. app.run(host='0.0.0.0', port=80, debug=True)
  11.  
  12. #-----index.html---------
  13. <html>
  14. <body>
  15. <video width="80%" height="80%" controls="controls" autoplay="autoplay">
  16. <source src="{{filename}}" type="video/mp4" />
  17. </video>
  18. </body>
  19. </html>
Advertisement
Add Comment
Please, Sign In to add comment