contrib.staticfiles and Django admin media contrib.staticfiles and Django admin media django django

contrib.staticfiles and Django admin media


I was having the same problem, finally noticed this line in the docs for ADMIN_MEDIA_PREFIX:

For integration with staticfiles, this should be the same as STATIC_URL followed by 'admin/'.

Doing that fixed it for me.

Edit 2012-03-12: Note that as of Django 1.4, ADMIN_MEDIA_PREFIX has been deprecated.


Are you developing on Windows?

If so (or even if not) have a look at the Django bug Cannot load admin interface static files when doing tutorial. Could be the cause of your problems.