Skip to content

Instantly share code, notes, and snippets.

@ripper234
Created March 28, 2011 12:17
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 ripper234/890361 to your computer and use it in GitHub Desktop.
Save ripper234/890361 to your computer and use it in GitHub Desktop.
import os
import sys
sys.path.append('/home/osqa/sites')
sys.path.append('/home/osqa/sites/beta-meta-d3c')
# The first part of this module name should be identical to the directory name
# of the OSQA source. For instance, if the full path to OSQA is
# /home/osqa/osqa-server, then the DJANGO_SETTINGS_MODULE should have a value
# of 'osqa-server.settings'.
os.environ['DJANGO_SETTINGS_MODULE'] = 'beta-meta-d3c.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