需要用wsgi部署django吗?我在 Docker 实例上运行 Django,似乎通常推荐的解决方案只是使用 Django 的开发服务器,即命令 python manage.py runserver。究竟什么时候需要像 wsgi 这样的 Web 服务器——在这种情况下,在容器化应用程序中,django 开发服务器是否足以用于生产应用程序?
请您参考如下方法:
你回答你自己的问题:
is the django development server enough for production applications ?
在django documentation ,您可以阅读以下内容:
Now’s a good time to note: don’t use this server in anything resembling a production environment. It’s intended only for use while developing. (We’re in the business of making Web frameworks, not Web servers.)
还有this part :
DO NOT USE THIS SERVER IN A PRODUCTION SETTING. It has not gone through security audits or performance tests. (And that’s how it’s gonna stay. We’re in the business of making Web frameworks, not Web servers, so improving this server to be able to handle a production environment is outside the scope of Django.)
所以没有。不要在生产环境中使用 Django 开发服务器。安全风险、性能不佳等。
