» Deploying Django (fastcgi, apache mod_wsgi, uwsgi, gunicorn)
Deploying Django (fastcgi, apache mod_wsgi, uwsgi, gunicorn)
|April 7, 2010
Posted by forumadmin
Can someone explain the difference between apache mod_wsgi in daemon mode and django fastcgi in threaded mode. They both use threads for concurrency I think.
Supposing that I’m using nginx as front end to apache mod_wsgi.
I’m comparing django built in fastcgi(./manage.py method=threaded maxchildren=15) and mod_wsgi in ‘daemon’ mode(WSGIDaemonProcess example threads=15). They both use threads and acquire GIL, am I right?
So if they both are similar, is there any benefits of apache mod_wsgi against fastcgi. I see such pros of fastcgi:
- we don’t need apache
- we consume less RAM
- I noticed that fastcgi has lesser overhead
I’m now happy with nginx + uwsgi.
I’m now happy with nginx + gunicorn
More Related Questions
- What is the disadvantage of using Djangos fastcgi server I'm using nginx + fastcgi( manage.py runfcgi ...) on production for some of my Django projects. A lot of people suggests to use nginx + gunicorn. What is advantage of using gunicorn […]
- Serving static files with mod_wsgi and Django I have a django application using mod_python, fairly typical configuration except that media files are being served by a (I know, not recommended) 'media' directory in the document root. […]
- Apache mod_wsgi: PermissionError when trying to access a page Trying to get Django running on this Apache box, using Python 3.3
httpd starts without fault but as soon as I try to access localhost, I am thrown a 500 error. The Apache logs say […]
- Django and mod_wsgi Root URL Config I'm having a very strange issue with serving a Django project using Apache and mod_wsgi. When the URL is requested it seems that mod_wsgi and Django completely ignores my ROOT_URLCONF […]
- Running Django with FastCGI or with mod_python which would you recommend?
which is faster, reliable?
apache mod_python or nginx/lighttpd FastCGI? Asked By - daniels Read Answers
- linking to django app from static website on same server So I have a static webpage being served up by my apache server. I was wondering, since I am just starting to dabble in Django and dynamic web apps, how one would go about, say having a […]
- Django newbie deployment question – ImportError: Could not import settings settings The app runs fine using django internal server however when I use apache + mod_python I get the below error
File "/usr/local/lib/python2.6/dist-packages/django/conf/__init__.py", […]
- Error: No module named staticfiles I'm newbie with django, I'm trying to deploy my project on a production server but I'm getting this error:
Error: No module named staticfiles
When trying to start the server:
- Deploying Django – Most static files are appearing except images Most of my static files on my newly deployed Django website are working (CSS), but not the images. All the images are broken links for some reason and I cannot figure out why. I am serving […]
- Deploying Google Analytics With Django We're about to deploy a new Django website, and we want to use Google Analytics to keep track of traffic on the site. However, we don't want all of the hits on development instances to […]