我用我的一个小型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.
更多推荐
发布评论