title: Django: serving static file on debug=false
body: <p>I know this question was asked many times, but none of the answers i found and tried helped me.</p>
  
  <p>Those are my static files settings:</p>
  
  <pre><code>STATIC_ROOT = os.path.abspath(SETTINGS_PATH+'/staticfiles/')
  
  # URL prefix for static files.
  # Example: "http://media.lawrence.com/static/"
  STATIC_URL = '/staticfiles/'
  
  # Additional locations of static files
  STATICFILES_DIRS = (
      # Put strings here, like "/home/html/static" or "C:/www/django/static".
      # Always use forward slashes, even on Windows.
      # Don't forget to use absolute paths, not relative paths.
      os.path.join(os.path.dirname(__file__), 'static'),
      )
  
  # List of finder classes that know how to find static files in
  # various locations.
  STATICFILES_FINDERS = (
      'django.contrib.staticfiles.finders.FileSystemFinder',
      'django.contrib.staticfiles.finders.AppDirectoriesFinder',
  #    'django.contrib.staticfiles.finders.DefaultStorageFinder',
  ) 
  </code></pre>
  
  <p>And in myapp/urls.py:</p>
  
  <pre><code>from django.conf.urls import patterns, include, url
  from django.conf import settings
  from django.contrib import admin
  from django.contrib.staticfiles.urls import staticfiles_urlpatterns
  
  admin.autodiscover()
  
  urlpatterns = patterns('',
      # urls
  )
  
  urlpatterns += staticfiles_urlpatterns()
  </code></pre>
  
  <p>Collectstatic copies all files to staticfiles/ as it should and i get 404 on all static files.</p>
  
  <p>I also tried this in urls.py:</p>
  
  <pre><code>if not settings.DEBUG:
      urlpatterns += patterns('',
          url(r'^staticfiles/(?P&lt;path&gt;.*)$', 'django.views.static.serve',
              {'document_root': settings.STATIC_ROOT}),
      )
  </code></pre>
  
  <p>This gives me following kind of errors:</p>
  
  <pre><code>Resource interpreted as Stylesheet but transferred with MIME type text/html:  "http://localhost:8000/?next=/staticfiles/css/bootstrap.css". localhost:11
  Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://localhost:8000/?next=/staticfiles/css/style.css". localhost:12
  Resource interpreted as Script but transferred with MIME type text/html: "http://localhost:8000/?next=/staticfiles/js/bootstrap.js". localhost:79
  Resource interpreted as Script but transferred with MIME type text/html: "http://localhost:8000/?next=/staticfiles/js/login.js". 
  </code></pre>
  
  <p>I can't see what's wrong with my settings. Any ideas are most welcome.</p>