title: Html can not find the flask url
body: <p>I am doing a small web using python flask, here is the directory structure</p>
  
  <p><a href="https://i.stack.imgur.com/vksNc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vksNc.png" alt="enter image description here"></a></p>
  
  <p>here is the run.py file</p>
  
  <pre><code>from app import app
  app.run
  </code></pre>
  
  <p>here is the __init__file in app</p>
  
  <pre><code>from flask import Flask, render_template, json, request
  from flask.ext.sqlalchemy import SQLAlchemy
  
  
  app = Flask(__name__)
  app.config.from_object('config')
  
  
  @app.route('/')
  def index():
      return render_template('home.html')
      # return "hello"
  
  
  @app.route('/signin', methods=['GET', 'POST'])
  def signin():    
      return 'ok'
  </code></pre>
  
  <p>here is the home.html file</p>
  
  <pre><code>&lt;input type="text" id="name" placeholder="Username"&gt;
  &lt;input type="text" id="password" class="inbox" placeholder="password"&gt;       
  &lt;div style="text-align:center"&gt;
          &lt;input type="button" id="btn_up_submit" class="btn btn-primary" value="sign up" onclick="upSubmit()"&gt;
          &lt;input type="button" id="btn_up_cancel" class="btn btn-success" value="cancel" onclick="upCancel()"&gt;
   &lt;/div&gt;
  
  
  &lt;script&gt;
  function upSubmit() {
      var name = $("#name").val();
      var password = $("#password").val();
  
      mydata = {
          'name':name,
          'password':password
      };   
      $.getJSON('/signin')
  
  }
  &lt;script&gt;
  </code></pre>
  
  <p>after I run it, it can show the home.html, but after I　click the submit button, the browser tells me "can not find <a href="http://127.0.0.1:8000/signin" rel="nofollow noreferrer">http://127.0.0.1:8000/signin</a>". Please help me, how to set the url? I want to send args from html to .py file, what should I do. Thanks very much.</p>