[Django]-Why don't Django admin "Today" and "Now" buttons show up in Safari?

3👍

I think you have to look at what is different between your firefox configuration and safary config

Off the top of my head:

  • One could be configured to use a proxy (messing with the trafic) the other not. Make sure the configuration is the same in both.

  • Safari could have cached the error clear the cache before testing again.

  • Try to access the gif files directly from the browser (by inputting the full url of the images) and run wireshark on the wire comparing both GET requests and responses. Something WILL be different that will help you to track the problem.

👤Pat

2👍

If you’re getting 304 on those files. Flush your browser’s cache and try again.

If it doesn’t load again anyway, make sure you are getting 200 OK.

👤muhuk

1👍

It seems like you have admin media missing (hence js and images aren’t loading). I generally do following.

in settings.py

ADMIN_MEDIA_PREFIX = '/media/admin/'

Then I symlink path of django.contrib.admin.media within my media dir. Say:

ln -s /var/lib/python-support/python2.5/django/contrib/admin/media/ /var/www/media/admin

Development server serves admin media automatically. But on production servers one generally prefers to server static stuff directly from apache (or whatever server).

👤muhuk

0👍

Check the media location, permissions and setup on your deployment server.

http://www.djangobook.com/en/1.0/chapter20/

0👍

Have you tried checking out firebug’s NET tab to see if the admin javascript/css/image files are all loading correctly?

I had that problem once.

Compare all those files from the dev server against the production server.

👤bchhun

Leave a comment