Reputation: 193
My Django site was working fine at localhost:8000
but when I uploaded to Heroku, the charts no longer show up. Is there any typical reason why this would be? The errors I received in the console were Uncaught Error: Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com
and The page at 'https://...com/' was loaded over HTTPS, but requested an insecure script 'http://cdnjs.cloudflare.com/ajax/libs/moment.js/2.13.0/moment.min.js'. This request has been blocked; the content must be served over HTTPS.
Upvotes: 1
Views: 288
Reputation: 31361
the error says it all. You try to load in the moment script over http but since this is an insecure protocol oit has been blocked, you have to load in the script over https.
https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.13.0/moment.min.js
Upvotes: 1