[英]Why can I not use the Django server for production?
I'm learning Django for the first time and I'm also relatively new to Python.我是第一次学习 Django,而且我对 Python 也比较陌生。 On the Django documentation , it says,
在Django 文档中,它说,
"You've started the Django development server, a lightweight Web server written purely in Python. [...] don't use this server in anything resembling a production environment. It's intended only for use while developing."
“您已经启动了 Django 开发服务器,这是一个纯 Python 编写的轻量级 Web 服务器。[...] 不要在任何类似于生产环境的环境中使用此服务器。它仅用于开发时使用。”
Why shouldn't I use the Django server for production?为什么我不应该使用 Django 服务器进行生产? Why do I need a separate server?
为什么需要单独的服务器? I'm from a Node/Express background, and when I created an Express application, I could just deploy it to Heroku without doing too much.
我来自 Node/Express 背景,当我创建一个 Express 应用程序时,我可以将它部署到 Heroku 而无需做太多事情。 How will this be different for Django?
这对 Django 有什么不同?
Because of security and performance reasons.由于安全和性能原因。 It's only meant to be used while developing.
它仅用于在开发时使用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.