Apache not serving django admin static files

Solution 1:

I think you should change:

Alias /media/ "/usr/lib/python2.6/site-packages/django/contrib/admin/media"

to:

Alias /static/admin/ "/usr/lib/python2.6/site-packages/django/contrib/admin/media"

Because you have:

ADMIN_MEDIA_PREFIX = '/static/admin/'

Solution 2:

That's because you haven't setup your STATIC files...

Add to settings:

STATIC_URL = '/static/'
STATIC_ROOT = '/var/www/static/'

Then run "python manage.py collectstatic"

That will put all the files under STATIC_ROOT which STATIC_URL will serve... You shouldn't point Apache at your Python lib files!!

If you want your own app-specific static files as well, setup "STATICFILES_DIRS".