title: Django Static Files Not Loading With Proven Proper Setup
body: <p>I'm running Django 1.4 with Python 2.7 on Ubuntu 12.10.  I work on a team of developers and something seems to have changed from yesterday to today and I can't seem to load static files locally with runserver.  We have a dev environment that is working fine.  All the other developers local environments are working fine.  Our production environment works fine.  We, as a team, are a bit stumped and hoped the community might be able to shed some light into the problem.</p>
  
  <p>Here are the relevant portions of the project:</p>
  
  <p>project.urls</p>
  
  <pre><code>if settings.TEMPLATE_DEBUG:
      urlpatterns += patterns('django.views.static',
          (r'^media/(?P&lt;path&gt;.*)$', 'serve', {
              'document_root': settings.MEDIA_ROOT}),
          (r'^static/(?P&lt;path&gt;.*)$', 'serve', {
              'show_indexes': True,
              'document_root': settings.STATIC_ROOT}),
      )
  </code></pre>
  
  <p>project.settings.dev</p>
  
  <pre><code>from __init__ import *
  
  DEBUG = True
  TEMPLATE_DEBUG = True
  </code></pre>
  
  <p>project.settings</p>
  
  <pre><code>PROJECT_ROOT = os.path.join(os.path.dirname(__file__), '..')
  STATIC_ROOT = os.path.join(PROJECT_ROOT, 'static')
  STATIC_URL = '/static/'
  </code></pre>
  
  <p>Project structure:</p>
  
  <pre><code>project
   --apps/
     --&lt;dozens of apps&gt;
   --settings/
     --__init__.py
     --dev.py
   --staticfiles/
   --templates/
   --__init__.py
   --manage.py
   --tests.py
   --urls.py
  </code></pre>
  
  <p>I've removed <code>project/static/</code> and run <code>manage.py collectstatic</code>, which copies 404 static files to <code>project/static/</code> from <code>project/staticfiles/</code>.</p>
  
  <p>If I then run <code>manage.py runserver</code> I can see the site, but no static styles/files are loaded.</p>
  
  <p>Note, nobody else seems to be having this problem.  We all use the same code base from Github.  There is literally no reason why I should be facing this problem while the others aren't.  Any ideas?  I'm considering just using Apache2 locally and setting up the .wsgi file and skipping the Django server altogether - but I'd really rather not.</p>
  
  <p>Edit 1:
  I noticed the Django server did complain a bit about some of the static files.</p>
  
  <pre><code>[20/Feb/2013 16:59:40] "GET /accounts/login/ HTTP/1.1" 302 0
  [20/Feb/2013 16:59:40] "GET /dashboard/ HTTP/1.1" 200 8645
  [20/Feb/2013 16:59:40] "GET /static/js/libs/less/less.js HTTP/1.1" 404 950
  [20/Feb/2013 16:59:40] "GET /static/less/proton-app.less HTTP/1.1" 404 950
  [20/Feb/2013 16:59:40] "GET /static/CACHE/js/987f5472f2f9.js HTTP/1.1" 404 950
  [20/Feb/2013 16:59:41] "GET /static/CACHE/js/d5e323c0aed6.js HTTP/1.1" 404 950
  [20/Feb/2013 16:59:41] "GET /static/images/favicon.png HTTP/1.1" 404 950
  </code></pre>
  
  <p>My apologies.  Yes, there are some 404 errors associated with the static files.</p>