title: Using flask run python script from HTML code
body: <p>I have run this code for flask that opens a page called 'Home'</p>
  
  <pre><code>from flask import Flask, render_template
  logging, request
  
  app = Flask(__name__)
  
  @app.route('/')
  def Home():
      return render_template('Home.html')
  
  if __name__ == "__main__":
      app.run(debug = True)
  </code></pre>
  
  <p>On the page I am trying to run the file Code.py when you press a button. I tried using</p>
  
  <pre><code>&lt;a href={{"File Location"}}"&gt;Press this Button&lt;/a&gt; 
  </code></pre>
  
  <p>But it returns an error on the website, how can I get it to run file and output to the html page</p>