I have now pared my 'old' .htaccess method for CGI to this:
(code)
AcceptPathInfo On
AddHandler fcgid-script .fcgi
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.fcgi/$1 [L,QSA]
(/code)
Note that Apache does not find index.fcgi unless
AcceptPathInfo On
is enabled.
But
code for test0_loader.py as follows
#!/usr/bin/python
import os
# Set the DJANGO_SETTINGS_MODULE environment variable.
os.environ['DJANGO_SETTINGS_MODULE'] = "settings"
from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="threaded", daemonize="false")
--
Tim
tim at tee jay fort
FYI: OS=Mac OSX 107, Python 2.7.1
Experience : CGI programming 17 years, python 10 years.
Django, FastCGI - newbie
.htaccess - pretty shaky
I'd like to work with django out of the box as fastcgi. I have a test
site set up.
With (code)
python manage.py runserver 8000
(/code)
My test sites is acces
3 matches
Mail list logo