Created
August 8, 2010 21:30
-
-
Save mattwilliamson/514564 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2.6 | |
import sys, os | |
# Add a custom Python path. | |
sys.path.insert(0, "..") | |
# Switch to the directory of your project. (Optional.) | |
os.chdir("/var/www/myproject") | |
os.environ['DJANGO_SETTINGS_MODULE'] = "settings" | |
from django.core.servers.fastcgi import runfastcgi | |
runfastcgi(["method=threaded", "daemonize=false"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment