Skip to content

Instantly share code, notes, and snippets.

@scottferg
Forked from paultiarks/gist:595856
Created September 24, 2010 19:05
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 scottferg/595858 to your computer and use it in GitHub Desktop.
Save scottferg/595858 to your computer and use it in GitHub Desktop.
import os
import sys
sys.path.append(os.path.dirname(__file__))
sys.path.append('/usr/local/django')
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment