【发布时间】:2021-01-14 07:17:08
【问题描述】:
我的 Django 网站在 localhost:8000 上运行良好,但是当我上传到 Heroku 时,图表不再显示。有什么典型的原因吗?我在控制台收到的错误是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 和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.
【问题讨论】:
标签: django heroku chart.js momentjs