本文介绍了Django python manage.py runserver的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我听说不推荐使用

python manage.py runserver

在生产环境中。如何来?

in a productive environment. How come ?

推荐答案

内置的Django服务器仅用于开发目的。在实际的生产环境中,您将需要使用强大而强大的替代方案,从Apache到nginx,使用或等。

The built in Django server is designed for development purposes only. In an actual production environment you'll want to use a robust and powerful alternative, ranging from Apache to nginx using WSGI or mod_python etc.

普遍的设置是将nginx保留在前面,它是一个WSGI服务器。

A popular setup is keeping nginx in front of Gunicorn, which is a WSGI server.

这篇关于Django python manage.py runserver的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 18:45
查看更多