Changes between Version 34 and Version 35 of ServerArrangements
- Timestamp:
- Jul 30, 2007, 6:09:49 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ServerArrangements
v34 v35 1 1 = Server arrangements = 2 3 [[TOC]] 2 4 3 5 Because Django uses [http://www.python.org/peps/pep-0333.html WSGI], it can run on any WSGI-compatible Web server. Here's how to run Django on various server arrangements. 4 6 5 == Apache with mod_python==7 == Apache == 6 8 7 See the [http://www.djangoproject.com/documentation/modpython/ official documentation]. 8 you can also look at the [wiki:django_apache_and_mod_rewrite] small tutorial. 9 === Apache with mod_python === 9 10 10 == Apache with FastCGI == 11 * See the [http://www.djangoproject.com/documentation/modpython/ official documentation]. 12 * you can also look at the [wiki:django_apache_and_mod_rewrite] small tutorial. 11 13 12 See the [http://www.djangoproject.com/documentation/fastcgi/ official documentation]. 14 === Apache with FastCGI === 13 15 14 Mac OS X users, see [wiki:OsxFcgi Django with FCGI on OS X]. 16 * See the [http://www.djangoproject.com/documentation/fastcgi/ official documentation]. 17 * Mac OS X users, see [wiki:OsxFcgi Django with FCGI on OS X]. 15 18 16 == lighttpd with Apache==19 === Apache with SCGI === 17 20 18 See [http://www.inerciasensorial.com.br/2007/06/10/perils-of-software-development/lighttpd-with-apache/ this page]. 21 * [http://www.mems-exchange.org/software/scgi/ SCGI] can be used with Apache [https://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/wiki/DjangoScgi#preview like this]. It builds on stuff from the Apache+FCGI documentation above. 22 ''The material at simon.bofh.ms has been hard to get - server sometimes responds, sometimes not IME. In any event, #3047 has patches, and seems to be on track to become the official way to do SCGI with Django.'' 19 23 20 == lighttpd with FastCGI==24 === Apache with mod_wsgi === 21 25 22 See the [http://www.djangoproject.com/documentation/fastcgi/ official documentation].26 * See the [http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango mod_wsgi official docs]. 23 27 24 Django/lighttpd/FastCGI [http://manuals.textdrive.com/read/book/15 instructions for use on TextDrive shared hosting accounts] are also available.25 28 26 == Multiple versions with FastCGI==29 == lighttpd == 27 30 28 See [wiki:MultipleVersionsWithFCGI]. 31 === lighttpd with Apache === 29 32 30 == FastCGI init scripts == 33 * See [http://www.inerciasensorial.com.br/2007/06/10/perils-of-software-development/lighttpd-with-apache/ this page]. 31 34 32 InitdScriptForLinux 35 === lighttpd with FastCGI === 36 37 * See the [http://www.djangoproject.com/documentation/fastcgi/ official documentation]. 38 * Django/lighttpd/FastCGI [http://manuals.textdrive.com/read/book/15 instructions for use on TextDrive shared hosting accounts] are also available. 39 40 === lighttpd with SCGI === 41 42 * See [http://sayspy.blogspot.com/2006/09/ignorant-newbie-running-django-using.html Running Django using SCGI through LightTPD]. 43 44 == FastCGI == 45 46 * [wiki:MultipleVersionsWithFCGI]. 47 * [wiki:InitdScriptForLinux FastCGI init scripts] 33 48 34 49 == Twisted.web2 == 35 50 36 See #172. 37 38 == Apache with SCGI == 39 40 [http://www.mems-exchange.org/software/scgi/ SCGI] can be used with Apache [https://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/wiki/DjangoScgi#preview like this]. It builds on stuff from the Apache+FCGI documentation above. 41 ''The material at simon.bofh.ms has been hard to get - server sometimes responds, sometimes not IME. In any event, #3047 has patches, and seems to be on track to become the official way to do SCGI with Django.'' 51 * See #172. 42 52 43 53 == nginx == 44 54 45 See [http://www.rkblog.rk.edu.pl/w/p/django-nginx/ Django on nginx] and [http://www.alrond.com/en/2007/mar/01/start-django-with-nginx/ Start Django with nginx]. 46 47 == lighttpd with SCGI == 48 49 See [http://sayspy.blogspot.com/2006/09/ignorant-newbie-running-django-using.html Running Django using SCGI through LightTPD]. 55 * See [http://www.rkblog.rk.edu.pl/w/p/django-nginx/ Django on nginx] and [http://www.alrond.com/en/2007/mar/01/start-django-with-nginx/ Start Django with nginx]. 50 56 51 57 == Django behind/inside Zope == … … 62 68 If that hasn't put you off and you still need CGI, take a look at #2407. 63 69 64 == WSGI with the !CherryPy Server==70 == !CherryPy and WSGI == 65 71 66 see [http://xhtml.net/scripts/Django-CherryPy-server-DjangoCerise Run your Django app with the CherryPy server - DjangoCerise].72 * See [http://xhtml.net/scripts/Django-CherryPy-server-DjangoCerise Run your Django app with the CherryPy server - DjangoCerise]. 67 73 68 74 == Django built-in development server == 69 75 70 See the [http://www.djangoproject.com/documentation/django_admin/ official documentation]. 76 * Once again, this isn't for production use, but the [http://www.djangoproject.com/documentation/django_admin/ official documentation] may help. Ticket #2996 has a patch to daemonize which may be useful