Created
May 21, 2009 13:58
-
-
Save kylef/115474 to your computer and use it in GitHub Desktop.
Django fastCGI dispatcher
This file contains 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/env python2.4 | |
import sys, os | |
from fcgi import WSGIServer | |
if __name__ == '__main__': | |
sys.path += ['/home/kylef/python'] | |
os.environ['DJANGO_SETTINGS_MODULE'] = 'kylef.settings' | |
from django.core.handlers.wsgi import WSGIHandler | |
WSGIServer(WSGIHandler()).run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment