我想通過request.static_url('some_file')在金字塔中提供靜態文件。由於一些服務,我的模板了線,如:在金字塔中通過https服務靜態文件
<script type="text/javascript" src="${request.static_url('dbas:static/first')}"></script>
<script type="text/javascript" src="${request.static_url('websocket:static/second')}"></script>
但不幸的是方法static_url()只提供與HTTP爲url_scheme鏈接,但我想HTTPS。我怎樣才能做到這一點?
謝謝!
退房這太問題http://stackoverflow.com/questions/39033106/pyramid- debug-toolbar-serving-static-content-over-http-instead-of-https –
謝謝,但我現在想要通過https:\ –