title: Flask unable to resolve static files
body: <p>I am trying to write a simple API using Flask. I am following Miguel Grinberg's <a href="https://blog.miguelgrinberg.com/post/designing-a-restful-api-with-python-and-flask" rel="nofollow noreferrer">blog</a>. </p>
  
  <p>I have a use-case where I am trying to serve a static page. I am unable to serve the static webpage.</p>
  
  <p>Here is my app.py</p>
  
  <pre><code>from flask import Flask, request, abort, render_template
  
  app = Flask(__name__)
  
  @app.route('/sample/application/', methods=['GET'])
  def static_website():
      return render_template('index.html')
  
  if __name__ == '__main__':
      app.run(debug=True)
  </code></pre>
  
  <p>And following is my directory layout:</p>
  
  <pre><code>flask_application/
      - app.py
      - static/
          - index.html
          - cs/
              - app.css
              - bootstrap.css
          - js/
              - jquery.js
          - images/
              - logo.png
  </code></pre>
  
  <p>Before anyone marks this as a duplicate, I have gone through the following posts and it has not resolved my issue.</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/24578330/flask-how-to-serve-static-html">Unable to serve css, js and image files</a></li>
  <li><a href="https://stackoverflow.com/questions/31413111/routing-static-files-using-flask">No response + question for templating</a></li>
  <li><a href="https://stackoverflow.com/questions/13772884/css-problems-with-flask-web-app">Again related to templating</a></li>
  </ul>
  
  <p>There are other questions but no ones gives a concrete solution to resolve css, js files in static pages.</p>
  
  <p>The server created by Flask is unable to pickup the js, css files.</p>
  
  <p>Also, I am avoiding templating because this the only use-case I have and I am pretty sure, I am not going to add any other pages or make it more complex.</p>