簡體   English   中英

本地主機上的 Django + https

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM