Skip to content

Instantly share code, notes, and snippets.

@fadur
Created January 31, 2011 20:57
Show Gist options
  • Select an option

  • Save fadur/804794 to your computer and use it in GitHub Desktop.

Select an option

Save fadur/804794 to your computer and use it in GitHub Desktop.
wsgi example
import os, sys
sys.path = ['/Users/username/Sites/sitename.tld'] + sys.path
os.environ['DJANGO_SETTINGS_MODULE'] = 'sitename.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