Ticket #2732: django-fastcgi-docfix.diff

File django-fastcgi-docfix.diff, 1.3 KB (added by James Crasta <jcrasta@…>, 18 years ago)

FastCGI documentation fix

  • django/core/servers/fastcgi.py

     
    7474        print message
    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:
    8182            k, v = x.split('=', 1)
  • docs/fastcgi.txt

     
    270270    AddHandler fastcgi-script .fcgi
    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
    276276program. Create a file ``mysite.fcgi`` and place it in your Web directory, and
     
    289289    os.environ['DJANGO_SETTINGS_MODULE'] = "myproject.settings"
    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
    295295-----------------------------
Back to Top