django mod_wsgi、nginx MySQL 或 Postgres
我想从社区中找出您认为最好的?
Django 运行如下。
Django、mod_wsgi 和 MySQL Django、mod_wsgi 和 Postgres Django、nginx 和 MySQL 或者 Django、nginx 和 Postgres
?
I am looking to find out from the community which you think is best?
Django running with the following.
Django, mod_wsgi and MySQL
Django, mod_wsgi and Postgres
Django, nginx and MySQL
OR
Django, nginx and Postgres
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我使用 nginx,因为它速度更快,而且我喜欢配置的设置方式。我在使用它时从未遇到过任何麻烦,所以我不明白为什么应该使用 Apache + mod_wsgi。此外,使用 fastcgi,您可以重新启动 django 站点,而无需重新启动整个 nginx 服务器,这我喜欢。还有 Postgres,因为:
复制自:MySQL 与 PostgreSQL?我应该为我的 Django 项目选择哪个?
编辑:
我现在认为在负载均衡器(varnish)后面运行的 uwsgi 是最好的解决方案。然后,nginx 可用于提供静态内容。
请参阅“Varnish 和 nginx,最好的方法 (0.9.8.4)”@ http://projects.unbit.it/uwsgi/wiki/Example
您可以使用Emperor(http://projects.unbit.it/uwsgi/wiki/Emperor) 用于管理 uwsgi 中的应用程序。这将允许您通过简单地触摸各个应用程序的配置文件来重新启动它们。
I use nginx because it's faster and I like how the configuration is set up. I have never run into any trouble using it so I can't see why one should rather use Apache + mod_wsgi.Also, using fastcgi, you can restart your django site without restarting the whole nginx server, which I like.And Postgres because:
Copied from: MySQL vs PostgreSQL? Which should I choose for my Django project?
EDIT:
I now think that uwsgi running behind a load balancer (varnish) is the best solution. nginx can then be used to serve static content.
See "Varnish and nginx, the best way (0.9.8.4)" @ http://projects.unbit.it/uwsgi/wiki/Example
You can use Emperor ( http://projects.unbit.it/uwsgi/wiki/Emperor) for managing apps in uwsgi. This will allow you to restart individual apps by simply touching their config files.
根据此基准测试,Django+ uWSGI 获胜。
According to this benchmark Django+ uWSGI wins.
您可以使用 nginx 作为代理并让 apache 在本地主机上运行。
要启动单个 django 项目,您需要触摸该项目的 wsgi 文件,它只会重新加载该 django 实例。您不需要重新启动/重新加载 apache
You can use nginx as a proxy and have apache run on localhost.
To start a single django project, you'd touch the wsgi file for that project and it will only reload that instance of django. You don't need to restart/reload apache