Skip to content

Instantly share code, notes, and snippets.

@takinbo
Created November 9, 2010 18:42
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 takinbo/669561 to your computer and use it in GitHub Desktop.
Save takinbo/669561 to your computer and use it in GitHub Desktop.
generic wsgi file for wsgi-based django app deployments
import os, sys
import django.core.handlers.wsgi
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
application = django.core.handlers.wsgi.WSGIHandler()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment