title: Can't get Django admin to find static files (css, img, js) on Apache
body: <p>I'm creating a Django development environment on my mac, and the admin is not finding the media files for styling. This is my settings.py file:</p>
  
  <pre><code>STATIC_ROOT = '/Users/username/Projects/django/cake/static/'
  STATIC_URL = '/static/'
  ADMIN_MEDIA_PREFIX = '/static/admin/'
  </code></pre>
  
  <p>This is the URL I go to, <code>http://127.0.0.1/admin/</code>, and the login section shows up just fine. There is no styling, however.</p>
  
  <p>I copied the files over from the <code>sitepackages/django/contrib/admin/media/</code> directory to <code>/Users/username/Projects/django/cake/static/admin/</code> via:</p>
  
  <pre><code>cp -r /Users/username/.virtualenvs/django/lib/python2.7/site-packages/django/contrib/admin/media/ ./
  </code></pre>
  
  <p>I can see the files are there.</p>
  
  <h2>EDIT</h2>
  
  <p>I just looked at the source and this is the path used for the css: <code>href="/static/admin/css/base.css"</code> So, that should be the problem. How would I fix this? Doesn't admin already handle adding the static_url to the admin_media_prefix?</p>
  
  <h2>EDIT 2</h2>
  
  <p>If I hardcode the fullpath in <code>admin_media_prefix</code> it still doesn't use the stylesheets.</p>
  
  <p>Inside my settings.py:</p>
  
  <pre><code>ADMIN_MEDIA_PREFIX = '/Users/username/Projects/django/cake/static/admin/'
  </code></pre>
  
  <p>And the source code shows:</p>
  
  <pre><code>href="/Users/username/Projects/django/cake/static/admin/css/base.css"
  </code></pre>
  
  <p>And when I go to that directory the CSS files are there...</p>
  
  <h2>EDIT 3</h2>
  
  <p>These are in my apache config:</p>
  
  <pre><code>Alias /site_media/ /Users/username/Projects/django/cake/media
  Alias /static/ /Users/username/Projects/django/cake/static
  Alias /media/ /Users/username/.virtualenvs/django/lib/python2.7/site-packages/django/contrib/admin/media
  </code></pre>