Skip to content

Instantly share code, notes, and snippets.

@dstufft
Forked from CMcDonald82/wsgi.py for Gondor
Created March 15, 2012 22:37
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 dstufft/2047411 to your computer and use it in GitHub Desktop.
Save dstufft/2047411 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"] = "settings"
application = WSGIHandler()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment