There is one previous question that I could find:
Using Django and s3boto, some admin images (icon_clock.gif & icon_calendar.gif) don't display
But it is very dated (2013). I am running django 1.9.1, apache, wsgi on Ubuntu 14.04.3 LTS.
First the problem was that jquery
files were missing, but running collectstatic
(manage.py
) from within the virtualenv
fixed that problem. However, the two admin media files are still missing. The 404 URL calls are:
http://example.com/missing-admin-media-prefix/img/icon_calendar.gif
http://example.com/missing-admin-media-prefix/img/icon_clock.gif
The strange URL prefix leads one to find several very old questions related to that problem, but it seems to have been depreciated for django 1.9.1.
My settings.py
looks like this:
STATIC_URL = '/static/'
#ADMIN_MEDIA_PREFIX = '/static/admin/'
#MEDIA_URL = "/media/"
#MEDIA_ROOT = "/home/user/app_root/media/"
STATIC_ROOT = "/home/user/app_root/static/"
The outcommented lines were suggestions I found in outdated questions related to the same problem (none worked). All other static files work fine, including most of the admin ones.
I've run out of ideas.