【发布时间】:2017-03-23 10:28:28
【问题描述】:
我想通过 request.static_url('some_file') 在金字塔中提供静态文件。由于有多项服务,我的模板如下:
<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。我怎样才能做到这一点?
谢谢!
【问题讨论】:
-
看看这个 SO 问题stackoverflow.com/questions/39033106/…
-
谢谢,但我现在希望每次通话都通过 https :\
标签: http https static pyramid url-scheme