title: Flask - Make a button direct to another page
body: <p>On my main page I have a button that says "Enter"</p>
  
  <pre><code>&lt;button id="Enter" type="button" onclick="/profile" class="button"&gt;Enter&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I would like it so that when this button is clicked it directs to the "home" page</p>
  
  <p>Python code:</p>
  
  <pre><code>@app.route('/', methods = ['GET', 'POST'])
  def index():
      return render_template("main.html")
  
  @app.route('/home', methods = ['GET', 'POST'])
  def home():
      return render_template("test1.html")
  </code></pre>
  
  <p>How can this be done? Thanks </p>