root python public_html cat mysite fcgi usr lib python bin python from

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
[root@python public_html]# cat mysite.fcgi
#!/usr/lib/python/bin/python
from flup.server.fcgi_fork import WSGIServer
import os
from django.core.handlers.wsgi import WSGIHandler
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
handler = WSGIHandler()
WSGIServer(handler).run()