简体   繁体   English

为什么我不能使用 Django 服务器进行生产?

[英]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.

相关问题 如何使django应用在开发服务器中使用sqlite而不在生产服务器上使用sqlite - How can I make my django app use sqlite in the development server but not on to production server 为什么不在 Django 中使用“runserver”进行生产? - Why not use “runserver” for production at Django? 我可以在 Django 的生产服务器上提供媒体文件吗? - Can i serve media files on production server in Django? Django项目:生产服务器,使用python 3 - Django project : production server, use python 3 为什么我的 Django 登录可以在开发服务器上运行而不是在生产服务器上运行? - Why does my Django login work on development server but not production server? 如何在生产中运行 Django 通道? - How can i run Django channels on production? django在生产服务器上(ubuntu) - django on production server(ubuntu) 为什么 Django/Python 请求在生产服务器上不起作用? - Why Django/Python request doesn't work from production server? Django静态文件不显示在生产服务器中。 如何正确映射它们,以便可以看到管理GUI - Django static files do not display in production server. How can I map them correctly, so I can see the admin GUI 为什么我无法连接到我的 localhost django 开发服务器? - Why can't I connect to my localhost django dev server?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM