from flask import Flask, render_template, g
app = Flask(__name__)
@app.route("/")
def index():
    return render_template("index.html")

# run in under twisted through wsgi
from twisted.web.wsgi import WSGIResource
from twisted.web.server import Site

resource = WSGIResource(reactor, reactor.getThreadPool(), app)
site = Site(resource)

 

相关文章:

  • 2022-12-23
  • 2021-05-13
  • 2023-03-20
  • 2021-04-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2023-03-14
  • 2021-11-17
相关资源
相似解决方案