我想通过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:\ –