How use Django with Tornado web server?

前端 未结 4 1006
醉话见心
醉话见心 2020-12-22 18:04

How do I use Django with the Tornado web server?

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-22 18:42

    There's a project called tornado-proxy that would help you. But I would like to recommend that you use Nginx. In the Nginx config you could now use proxy_pass to direct your calls like this:

    location /comet {
      proxy_pass http://localhost:8081;
    }
    
    location / {
      proxy_pass http://localhost:8080;
    }
    

提交回复
热议问题