Skip to content

Instantly share code, notes, and snippets.

@kylef
Created May 21, 2009 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylef/115474 to your computer and use it in GitHub Desktop.
Save kylef/115474 to your computer and use it in GitHub Desktop.
Django fastCGI dispatcher
#!/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