django是否使用线程来处理请求? [英] Did django use thread to handle requests?

查看:604
本文介绍了django是否使用线程来处理请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



是否使用线程,有人可以在此提供一些参考?

解决方案

Django不是一个Web服务器。它是一个Web框架。它作为应用程序运行的行为取决于您的服务方式。



它可以是线程请求。它可能是进程。甚至可能是异步的。



提供文件


Django不提供文件本身;它将该工作留给您选择的任何Web服务器。


Wsgi是现在最常用的django服务,所以真的应该只是调查不同的wsgi实现的配置选项。


what is the underlying infrastructure Django uses to handle its requests?

did it use thread, can someone give some reference on this ?

解决方案

Django is not a web server. It is a web framework. The behavior of how it is being run as an application is dependant on your method for serving it.

It could be threaded requests. It could be processes. It could even be async.

Serving Files

Django doesn't serve files itself; it leaves that job to whichever Web server you choose.

Wsgi is the most common way to serve django right now, so really you should just investigate the configuration options of different wsgi implementations.

这篇关于django是否使用线程来处理请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆