SEESenv/web/hgbook/run.wsgi
changeset 18 9162df2ef805
parent 16 2e3d2cadbcb6
child 19 a9636afd4c95
equal deleted inserted replaced
17:abf126e51dbc 18:9162df2ef805
    28 
    28 
    29 
    29 
    30 print >>sys.stderr , "My Review App running"
    30 print >>sys.stderr , "My Review App running"
    31 
    31 
    32 home_dir=os.getenv("HOME")
    32 home_dir=os.getenv("HOME")
    33 
       
    34 if home_dir=='/home/amit' or home_dir==None:
    33 if home_dir=='/home/amit' or home_dir==None:
    35     sys.path.append('/home/amit/SEES-hacks/SEESenv/web/')
    34     sys.path.append('/home/amit/SEES-hacks/SEESenv/web/')
    36     sys.path.append('/home/amit/SEES-hacks/SEESenv/web/hgbook/comments')
    35     sys.path.append('/home/amit/SEES-hacks/SEESenv/web/hgbook/comments')
    37 else:
    36 else:
    38     sys.path.append('/home/hg/repos/SEES-hacks/SEESenv/web/')
    37     sys.path.append('/home/hg/repos/SEES-hacks/SEESenv/web/')
    39     sys.path.append('/home/hg/repos/SEES-hacks/SEESenv/web/hgbook/comments')
    38     sys.path.append('/home/hg/repos/SEES-hacks/SEESenv/web/hgbook/comments')
    40 os.environ['DJANGO_SETTINGS_MODULE'] = 'hgbook.settings'
    39 os.environ['DJANGO_SETTINGS_MODULE'] = 'hgbook.settings'
    41 import hgbook
    40 #import hgbook
    42 import django.core.handlers.wsgi
    41 import django.core.handlers.wsgi
    43 print >> sys.stderr , hgbook
    42 #print >> sys.stderr , hgbook
    44 print >> sys.stderr , django.core.handlers.wsgi.WSGIRequest.GET
    43 print >> sys.stderr , django.core.handlers.wsgi.WSGIRequest.GET
    45 application = django.core.handlers.wsgi.WSGIHandler()
    44 application = django.core.handlers.wsgi.WSGIHandler()
    46 print >> sys.stderr , django.core.handlers.wsgi.WSGIRequest.GET
    45 print >> sys.stderr , django.core.handlers.wsgi.WSGIRequest.GET
    47 _application = django.core.handlers.wsgi.WSGIHandler()
    46 _application = django.core.handlers.wsgi.WSGIHandler()
    48 #print >> sys.stderr , django.core.handlers.wsgi.WSGIRequest.GET    
    47 #print >> sys.stderr , django.core.handlers.wsgi.WSGIRequest.GET