![](/img/trans.png)
[英]SSL/TLS Error when Testing Django API via HTTPS on Localhost
[英]Django + https on localhost
我有 TLS 证书(.crt)和密钥(.key)的文件我如何将它们添加到 settings.py 并使用 https 运行 localhost(需要将它们添加为文本变量而不是这些文件的路径)? 提前致谢!
Django runserver
没有实现 HTTPS 并且无论如何它都不打算用于生产。 There is a package that works similarly with support for SSL ( django-sslserver ) but rather than using it I would consider setup of NGINX or Apache similar to what could be used in production.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.