2011-11-10 14:07:53 +01:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
2012-06-04 11:06:47 +02:00
|
|
|
import sys
|
|
|
|
import os
|
2011-11-10 14:07:53 +01:00
|
|
|
import os.path
|
|
|
|
|
|
|
|
PROJECT = '/path/to/euscanwww'
|
|
|
|
|
|
|
|
sys.path.insert(0, os.path.dirname(PROJECT))
|
|
|
|
sys.path.insert(0, PROJECT)
|
|
|
|
|
|
|
|
os.chdir(PROJECT)
|
|
|
|
|
|
|
|
os.environ['DJANGO_SETTINGS_MODULE'] = "euscanwww.settings"
|
|
|
|
os.environ['HOME'] = "/path/to/home"
|
|
|
|
|
|
|
|
from django.core.servers.fastcgi import runfastcgi
|
|
|
|
runfastcgi(method="threaded", daemonize="false", maxspare=1)
|