django项目部署到现场(分段)网站有多痛苦?(How painful is a django project deployment to a live (staging) site? [close

编程入门 行业动态 更新时间:2024-10-26 02:31:08
django项目部署到现场(分段)网站有多痛苦?(How painful is a django project deployment to a live (staging) site? [closed])

我用我的一个小型django项目获得了相当快的速度,当然,我正在本地开发这个项目。 但是,因为我以前从未与django合作过,所以我不知道上传它并在生产服务器上测试它意味着什么。 我很好奇,因为我非常渴望测试早期发布的实况。

我知道有这个文件,我认为它会非常有用: http : //djangobook.com/zh/2.0/chapter12/

但是,在部署之前,期间和之后是否有任何细节需要考虑? 任何建议或最佳实践?

谢谢。

I've getting quite fast with a small django project of mine, which I'm developing locally, of course. But, as I had never worked with django before, I'm not aware of what it implies to upload it and test it on a production server. And I'm quite curious, since I'm very eager to test an early release live.

I know there is this document, which I think it'll be really helpful: http://djangobook.com/en/2.0/chapter12/

But, are there any details I should take into account before, during and after the deployment? Any advice or best practices?

Thanks.

最满意答案

尽可能使您的开发/测试环境与您的部署环境相匹配。 这意味着使用例如PostgreSQL和mod_wsgi代替SQLite和内置服务器。 这个软件是免费的,所以你没有理由不能接受它。

Make your development/testing environment match your deployment environment as closely as possible. This means using e.g. PostgreSQL and mod_wsgi instead of SQLite and the built-in server. This software is free so there's no reason you can't get your hands on it.

更多推荐

本文发布于:2023-07-22 12:13:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1219915.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:有多   痛苦   现场   项目   网站

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!