Django

Code

Changeset 3759

Show
Ignore:
Timestamp:
09/14/06 10:37:11 (2 years ago)
Author:
adrian
Message:

Fixed #2732 -- Fixed error in FastCGI docs and added keyword-arg support in a FastCGI function. Thanks for the patch, James Crasta

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/servers/fastcgi.py

    r3174 r3759  
    7575    return False 
    7676 
    77 def runfastcgi(argset): 
     77def runfastcgi(argset, **kwargs): 
    7878    options = FASTCGI_OPTIONS.copy() 
     79    options.update(kwargs) 
    7980    for x in argset: 
    8081        if "=" in x: 
  • django/trunk/docs/fastcgi.txt

    r3211 r3759  
    271271    RewriteEngine On 
    272272    RewriteCond %{REQUEST_FILENAME} !-f 
    273     RewriteRule ^/(.*)$ /mysite.fcgi/$1 [QSA,L] 
     273    RewriteRule ^(.*)$ mysite.fcgi/$1 [QSA,L] 
    274274 
    275275Then, create a small script that tells Apache how to spawn your FastCGI 
     
    290290 
    291291    from django.core.servers.fastcgi import runfastcgi 
    292     runfastcgi(["method=threaded", "daemonize=false"]
     292    runfastcgi(method="threaded", daemonize="false"
    293293 
    294294Restarting the spawned server