Re: django & wsgi: what is the preferred webserver?
On Sun, Mar 7, 2010 at 4:21 PM, Shawn Milochikwrote: > Have a look here: > > http://code.djangoproject.com/wiki/ServerArrangements > > In general, you should have two Web servers (e.g. Apache and nginx or > lighttpd). Apache (with mod_wsgi) to serve Django and nginx or lighttpd to > serve the static files (CSS, JavaScript, images, etc.). AFAICT, mod_wsgi can be 'separate enough', leaving Apache free to host static files. another setup is a light and fast server (lighttpd, nginx, cherokee) plus Django on FastCGI. again, it's two separate processes (web server / FastCGI server). in short, it seems that these days the main thing to avoid is mod_python and static files on the same Apache instance. -- Javier -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: django & wsgi: what is the preferred webserver?
On Monday 08 Mar 2010 1:26:12 pm Rolando Espinoza La Fuente wrote: > Somebody else thinks that django on tornado could be a winning combination? > I used to - but have you tried it with the csrf_token? my server broke on that and I stopped using tornado. -- regards Kenneth Gonsalves Senior Associate NRC-FOSS http://certificate.nrcfoss.au-kbc.org.in -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: django & wsgi: what is the preferred webserver?
What about using tornado as wsgi server behind nginx? I made some improvements to the management command published at http://geekscrap.com/2010/02/integrate-tornado-in-django/ You can check the code and sample project here: http://github.com/darkrho/django-on-tornado May not be heavy production tested but could use less cpu and memory. I made an unscientific comparison on a low end p4 with a simple return HttpResponse("hello world") : - django's runserver:~280 reqs/sec - django on cherrypy ~320 reqs/sec - django on tornado ~380 reqs/sec YMMV. I will move my projects on webfaction from apache+mod_wsgi to tornado with supervisord. Somebody else thinks that django on tornado could be a winning combination? Regards, Rolando On Sun, Mar 7, 2010 at 3:46 PM, antonwrote: > Hi, > > I am new to django and wanted to set up a webserver > and use apache or lighttpd. > > As I understood wsgi is the preffered ( most performant) way > to use python & a web server. > > I heard that apache has a mod_wsgi and wanted to ask if > there exists such a module for lighttpd too? > > What would you propose to use: > - apache + mod_wsgi > - or lighttpd + ?? > > Anton > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: django & wsgi: what is the preferred webserver?
Cherokee is what I use since quite a while now. Before that, Apache. I would never go back since Cherokee is imo way easier to set up and maintain plus is a lot faster in its basic setup than compared to Apache in its basic setup (what the .debs give you). http://www.cherokee-project.com/doc/cookbook_django.html -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: django & wsgi: what is the preferred webserver?
Have a look here: http://code.djangoproject.com/wiki/ServerArrangements In general, you should have two Web servers (e.g. Apache and nginx or lighttpd). Apache (with mod_wsgi) to serve Django and nginx or lighttpd to serve the static files (CSS, JavaScript, images, etc.). I'm not an expert in hosting, so hopefully others with experience setting up a variety of methods will chime in with real-word experience. Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
django & wsgi: what is the preferred webserver?
Hi, I am new to django and wanted to set up a webserver and use apache or lighttpd. As I understood wsgi is the preffered ( most performant) way to use python & a web server. I heard that apache has a mod_wsgi and wanted to ask if there exists such a module for lighttpd too? What would you propose to use: - apache + mod_wsgi - or lighttpd + ?? Anton -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.