[英]Heroku Django error: SSL certificate has expired
How do I make my free Heroku site work?如何使我的免费 Heroku 站点正常工作? I did not change it from the time it was working to when it stopped working.从它工作到它停止工作时,我没有改变它。
When I opened my site, I got an "Application Error" page.当我打开我的网站时,我得到一个“应用程序错误”页面。 I followed its instructions.我听从了它的指示。 I ran the Heroku CLI command "heroku logs --tail" and got an error.我运行了 Heroku CLI 命令“heroku logs --tail”并出现错误。 I then ran "heroku logs --tail --app moresomervillehappinessapp".然后我运行“heroku logs --tail --app moresomervillehappinessapp”。
Here are the last logs:这是最后的日志:
2020-04-06T20:49:47.204222+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.8/urllib/request.py", line 1320, in do_open
2020-04-06T20:49:47.204222+00:00 app[web.1]: raise URLError(err)
2020-04-06T20:49:47.204228+00:00 app[web.1]: urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1108)>
According to Heroku, I can use the "*.herokuapp.com" certificate for SSL.根据 Heroku,我可以为 SSL 使用“*.herokuapp.com”证书。 Should I try to get rid of the SSL certificate?我应该尝试摆脱 SSL 证书吗? I care a little bit about SEO, but not the security of user data.我有点关心 SEO,但不关心用户数据的安全性。
Software I used: Django 3.0.2, Python 3.8我使用的软件:Django 3.0.2、Python 3.8
My site used an URL to read a CSV from a university site.我的网站使用 URL 从大学网站读取 CSV。 The URL had "https:" in it. URL 中有“https:”。 Now it has "http:".现在它有“http:”。 I put the CSV on Github and changed the URL my site reads.我将 CSV 放在 Github 上,并更改了我的网站读取的 URL。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.