title: 404 error for CSS file in Flask Application
body: <p>I am unable to find exact path of .css file in my flask app. Following is relevant code</p>
  
  <p><strong>layout.html</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;An App&lt;/title&gt;
      &lt;link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="container"&gt;
          &lt;div id="heading"&gt;&lt;h3&gt;App&lt;/h3&gt;&lt;/div&gt;
          {% block content %}{% endblock %}
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  
  
  +app
    +static
      style.css
  +templates
  __init__.py
  forms.py
  models.py
  views.py
  db_repository
  .gitignore
  app.db
  config.py
  db_create.py
  </code></pre>
  
  <p>The one with <code>+</code> sign are folders</p>
  
  <p><strong>Update</strong>: </p>
  
  <p>I tried this in <code>__init__.py</code>, same result</p>
  
  <pre><code>from flask import Flask
  from flask.ext.sqlalchemy import SQLAlchemy
  import os
  app = Flask(__name__)
  app.config.from_object('config')
  app._static_folder = os.path.abspath("static/style.css")
  print os.path.abspath(app._static_folder)
  db = SQLAlchemy(app)
  
  from app import views, models
  </code></pre>
  
  <p>The link <code>http://127.0.0.1:5000/static/style.css</code> gives 404 error</p>