Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #2732 -- Fixed error in FastCGI docs and added keyword-arg supp…

…ort in a FastCGI function. Thanks for the patch, James Crasta

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3759 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 927ec3fe7b446079d169ce684f833800bc117b74 1 parent 45399b4
@adrianholovaty adrianholovaty authored
Showing with 4 additions and 3 deletions.
  1. +2 −1  django/core/servers/fastcgi.py
  2. +2 −2 docs/fastcgi.txt
View
3  django/core/servers/fastcgi.py
@@ -74,8 +74,9 @@ def fastcgi_help(message=None):
print message
return False
-def runfastcgi(argset):
+def runfastcgi(argset, **kwargs):
options = FASTCGI_OPTIONS.copy()
+ options.update(kwargs)
for x in argset:
if "=" in x:
k, v = x.split('=', 1)
View
4 docs/fastcgi.txt
@@ -270,7 +270,7 @@ In your Web root directory, add this to a file named ``.htaccess`` ::
AddHandler fastcgi-script .fcgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^/(.*)$ /mysite.fcgi/$1 [QSA,L]
+ RewriteRule ^(.*)$ mysite.fcgi/$1 [QSA,L]
Then, create a small script that tells Apache how to spawn your FastCGI
program. Create a file ``mysite.fcgi`` and place it in your Web directory, and
@@ -289,7 +289,7 @@ be sure to make it executable ::
os.environ['DJANGO_SETTINGS_MODULE'] = "myproject.settings"
from django.core.servers.fastcgi import runfastcgi
- runfastcgi(["method=threaded", "daemonize=false"])
+ runfastcgi(method="threaded", daemonize="false")
Restarting the spawned server
-----------------------------

0 comments on commit 927ec3f

Please sign in to comment.
Something went wrong with that request. Please try again.