Skip to content

Instantly share code, notes, and snippets.

@CMcDonald82
Created March 15, 2012 22:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save CMcDonald82/2047393 to your computer and use it in GitHub Desktop.
Save CMcDonald82/2047393 to your computer and use it in GitHub Desktop.
Gondor wsgi.py
import os, sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.abspath(os.path.dirname(__file__)), os.pardir, os.pardir)))
sys.path.insert(0, os.path.abspath(os.path.join(os.path.abspath(os.path.dirname(__file__)), os.pardir)))
from django.core.handlers.wsgi import WSGIHandler
os.environ["DJANGO_SETTINGS_MODULE"] = "mysite.settings"
application = WSGIHandler()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment