SEESenv/web/hgbook/run.wsgi~
changeset 22 a27f1e69d966
parent 21 5f66214fce86
equal deleted inserted replaced
21:5f66214fce86 22:a27f1e69d966
    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 print >> sys.stderr , home_dir
    33 if home_dir=='/home/amit' or home_dir==None:
    34 if home_dir=='/home/amit' or home_dir==None:
    34     sys.path.append('/home/amit/SEES-hacks/SEESenv/web')
    35     sys.path.append('/home/amit/SEES-hacks/SEESenv/web')
    35     sys.path.append('/home/amit/SEES-hacks/SEESenv/web/hgbook/comments')
    36     sys.path.append('/home/amit/SEES-hacks/SEESenv/web/hgbook/comments')
    36 else:
    37 else:
    37     sys.path.append('/home/hg/repos/SEES-hacks/SEESenv/web')
    38     sys.path.append('/home/hg/repos/SEES-hacks/SEESenv/web')
    38     sys.path.append('/home/hg/repos/SEES-hacks/SEESenv/web/hgbook/comments')
    39     sys.path.append('/home/hg/repos/SEES-hacks/SEESenv/web/hgbook/comments')
    39 print sys.path
    40 print >> sys.stderr , sys.path
    40 os.environ['DJANGO_SETTINGS_MODULE'] = 'hgbook.settings'
    41 os.environ['DJANGO_SETTINGS_MODULE'] = 'hgbook.settings'
    41 
    42 
    42 import django.core.handlers.wsgi
    43 import django.core.handlers.wsgi
    43 
    44 
    44 print >> sys.stderr , django.core.handlers.wsgi.WSGIRequest.GET
    45 print >> sys.stderr , django.core.handlers.wsgi.WSGIRequest.GET