2
有一个Python脚本captiveportal与扭曲的工作,但它在脚本加载门户页面(搜索CAPTIVE_TEMPLATE)我怎样才能扭曲外部文件夹?
https://github.com/bendemott/captiveportal/blob/master/captiveportal
我怎么可以加载一个完整的index.html文件夹js和css和其他材料像扭曲的文档和文件?
最好的问候
有一个Python脚本captiveportal与扭曲的工作,但它在脚本加载门户页面(搜索CAPTIVE_TEMPLATE)我怎样才能扭曲外部文件夹?
https://github.com/bendemott/captiveportal/blob/master/captiveportal
我怎么可以加载一个完整的index.html文件夹js和css和其他材料像扭曲的文档和文件?
最好的问候
使用文件并传递一个目录。
from twisted.web.server import Site
from twisted.web.static import File
from twisted.internet import reactor
resource = File('/tmp')
factory = Site(resource)
reactor.listenTCP(8888, factory)
reactor.run()
查看更多here