title: Import Handlers - App Route with Flask
body: <p>My File Directory:</p>
  
  <pre><code>app/
  app.py
  app/server/
     views.py
  </code></pre>
  
  <p>I don't get any import errors with views, but I am not able to URL route to Views - I can only do it from app.py - how can I fix this issue? I've been stuck on this for 6 hours.</p>
  
  <p>Code from app.py - how I import views</p>
  
  <pre><code>sys.path.append(os.path.join(os.path.abspath('.'), 'server'))
  import views
  </code></pre>
  
  <p>And my url routing seems fine, so I am not sure where the problem lies:</p>
  
  <pre><code>@app.route("/login/", methods=['GET', 'POST'])
  def login():
      doSomething()
  </code></pre>
  
  <hr>
  
  <p>I feel the problem is more to do with url routing than importing files though.</p>