Django

Code

Changeset 4897

Show
Ignore:
Timestamp:
04/01/07 01:00:45 (1 year ago)
Author:
mtredinnick
Message:

Fixed #3047 -- Updated fastcgi documentation to mention SCGI and AJP support.
Thanks Barry Pederson and Simon Greenhill.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/AUTHORS

    r4875 r4897  
    157157    Jay Parlar <parlar@gmail.com> 
    158158    pavithran s <pavithran.s@gmail.com> 
     159    Barry Pederson <bp@barryp.org> 
    159160    pgross@thoughtworks.com 
    160161    phaedo <http://phaedo.cx/> 
  • django/trunk/docs/faq.txt

    r4420 r4897  
    329329Although we recommend mod_python for production use, you don't have to use it, 
    330330thanks to the fact that Django uses an arrangement called WSGI_. Django can 
    331 talk to any WSGI-enabled server. The most common non-mod_python deployment 
    332 setup is FastCGI. See `How to use Django with FastCGI`_ for full information. 
     331talk to any WSGI-enabled server. Other common non-mod_python deployment 
     332setups are FastCGI, SCGI, or AJP. See `How to use Django with FastCGI, SCGI or 
     333AJP`_ for full information. 
    333334 
    334335Also, see the `server arrangements wiki page`_ for other deployment strategies. 
     
    338339 
    339340.. _WSGI: http://www.python.org/peps/pep-0333.html 
    340 .. _How to use Django with FastCGI: ../fastcgi/ 
     341.. _How to use Django with FastCGI, SCGI or AJP: ../fastcgi/ 
    341342.. _server arrangements wiki page: http://code.djangoproject.com/wiki/ServerArrangements 
    342343 
  • django/trunk/docs/fastcgi.txt

    r4710 r4897  
    1 ============================== 
    2 How to use Django with FastCGI 
    3 ============================== 
     1=========================================== 
     2How to use Django with FastCGI, SCGI or AJP 
     3=========================================== 
    44 
    55Although the `current preferred setup`_ for running Django is Apache_ with 
    6 `mod_python`_, many people use shared hosting, on which FastCGI is the only 
    7 viable option. In some setups, FastCGI also allows better security -- and, 
    8 possibly, better performance -- than mod_python. 
     6`mod_python`_, many people use shared hosting, on which protocols such as 
     7FastCGI, SCGI, or AJP are the only viable options. In some setups, these protocols 
     8also allow better security -- and, possibly, better performance -- than mod_python. 
     9 
     10.. admonition:: Note 
     11 
     12    This document primarily talks about FastCGI, although other flup-supported 
     13    protocols such as SCGI and AJP are supported.  
    914 
    1015Essentially, FastCGI is an efficient way of letting an external application 
     
    7580list of all the available options. 
    7681 
    77 You'll need to specify either a ``socket`` or both ``host`` and ``port``. Then, 
    78 when you set up your Web server, you'll just need to point it at the host/port 
     82You'll need to specify either a ``socket``, ``protocol`` or both ``host`` and ``port``. 
     83Then, when you set up your Web server, you'll just need to point it at the host/port 
    7984or socket you specified when starting the FastCGI server. 
     85 
     86Protocols 
     87--------- 
     88 
     89Django supports all the protocols that flup_ does, namely fastcgi_, `SCGI`_, and `AJP1.3`_.  
     90Your preferred protocol can be selected by using the `protocol=`<protocol_name> option with 
     91`./manage.py runfcgi` where <protocol-name> may currently be one of: `fcgi` (the default),  
     92`scgi`, or `ajp`.  
     93 
     94.. _flup: http://www.saddi.com/software/flup/ 
     95.. _fastcgi: http://www.fastcgi.com/ 
     96.. _SCGI: http://python.ca/scgi/protocol.txt 
     97.. _AJP1.3: http://tomcat.apache.org/connectors-doc/ajp/ajpv13a.html 
    8098 
    8199Examples 
  • django/trunk/docs/modpython.txt

    r4877 r4897  
    1414`prefork MPM`_, as opposed to the `worker MPM`_. 
    1515 
    16 You may also be interested in `How to use Django with FastCGI`_. 
     16You may also be interested in `How to use Django with FastCGI, SCGI or AJP`_ 
     17(which also covers SCGI and AJP). 
    1718 
    1819.. _Apache: http://httpd.apache.org/ 
     
    2122.. _prefork MPM: http://httpd.apache.org/docs/2.2/mod/prefork.html 
    2223.. _worker MPM: http://httpd.apache.org/docs/2.2/mod/worker.html 
    23 .. _How to use Django with FastCGI: ../fastcgi/ 
     24.. _How to use Django with FastCGI, SCGI or AJP: ../fastcgi/ 
    2425 
    2526Basic configuration