import os, sys #Calculate the path based on the location of the WSGI script. apache_configuration= os.path.dirname(__file__) project = os.path.dirname(apache_configuration) workspace = os.path.dirname(project) sys.path.append(workspace) #Add the path to 3rd party django application and to django itself. #sys.path.append('C:\\yml\\_myScript_\\dj_things\\web_development\\svn_views\\django_src\\trunk') #sys.path.append('C:\\yml\\_myScript_\\dj_things\\web_development\\svn_views\\django-registration') sys.path.append( workspace + '/site-packages') #os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.apache.settings_production' os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() print >> sys.stderr, sys.path