Ticket #2732: django-fastcgi-docfix.diff
File django-fastcgi-docfix.diff, 1.3 KB (added by , 18 years ago) |
---|
-
django/core/servers/fastcgi.py
74 74 print message 75 75 return False 76 76 77 def runfastcgi(argset ):77 def runfastcgi(argset, **kwargs): 78 78 options = FASTCGI_OPTIONS.copy() 79 options.update(kwargs) 79 80 for x in argset: 80 81 if "=" in x: 81 82 k, v = x.split('=', 1) -
docs/fastcgi.txt
270 270 AddHandler fastcgi-script .fcgi 271 271 RewriteEngine On 272 272 RewriteCond %{REQUEST_FILENAME} !-f 273 RewriteRule ^ /(.*)$ /mysite.fcgi/$1 [QSA,L]273 RewriteRule ^(.*)$ mysite.fcgi/$1 [QSA,L] 274 274 275 275 Then, create a small script that tells Apache how to spawn your FastCGI 276 276 program. Create a file ``mysite.fcgi`` and place it in your Web directory, and … … 289 289 os.environ['DJANGO_SETTINGS_MODULE'] = "myproject.settings" 290 290 291 291 from django.core.servers.fastcgi import runfastcgi 292 runfastcgi( ["method=threaded", "daemonize=false"])292 runfastcgi(method="threaded", daemonize="false") 293 293 294 294 Restarting the spawned server 295 295 -----------------------------