Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy don't Django admin "Today" and "Now" buttons show up in Safari?
    primarykey
    data
    text
    <p>I'm developing a Django application that contains a model with a date/time field. On my local copy of the application, the admin page for that particular model shows this for the date/time field:</p> <p><a href="http://www.cs.wm.edu/~mpd/images/bugs/django-date-local.png" rel="nofollow noreferrer">alt text http://www.cs.wm.edu/~mpd/images/bugs/django-date-local.png</a></p> <p>This is as expected. However, when I deploy to my webserver and use the application from there, I get this:</p> <p><a href="http://www.cs.wm.edu/~mpd/images/bugs/django-date-server.png" rel="nofollow noreferrer">alt text http://www.cs.wm.edu/~mpd/images/bugs/django-date-server.png</a></p> <p>The application on the server is <em>exactly</em> the same as my local copy, <em>except</em> that I have debugging disabled on the server (but I don't think that should matter...should it?). Why does the admin app on the server differ from the local admin app?</p> <hr> <h2>Update</h2> <ul> <li>The issue seems localized to Safari. The "Today" and "Now" buttons appear when the admin site is accessed via Firefox. It looks like Safari can't download some of the JavaScript files necessary to show these widgets (strange that Firefox can, though).</li> <li>I noticed that Safari is receiving a "304 Not Modified" code for the following files, but I'm not sure what that means, or how to fix it. Obviously, these are the JavaScript files and images that control the date/time widget: <ul> <li><code>RelatedObjectLookup.js</code></li> <li><code>DateTimeShortcuts.js</code></li> <li><code>icon_calendar.gif</code></li> <li><code>icon_clock.gif</code></li> </ul></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload