Testing urls part something there...
authoramit@thunder
Sun, 21 Feb 2010 23:03:28 +0530
changeset 10 aff1900403ee
parent 9 ab616eb10878
child 11 a7bd4bca6f6e
Testing urls part something there...
SEESenv/web/hgbook/run.wsgi
SEESenv/web/hgbook/run.wsgi~
--- a/SEESenv/web/hgbook/run.wsgi	Sun Feb 21 18:14:33 2010 +0530
+++ b/SEESenv/web/hgbook/run.wsgi	Sun Feb 21 23:03:28 2010 +0530
@@ -25,7 +25,10 @@
 import os
 import sys
 import django
+
+
 print >>sys.stderr , "My Review App running"
+
 home_dir=os.getenv("HOME")
 if home_dir=='/home/amit':
     sys.path.append('/home/amit/SEES-hacks/SEESenv/web/')
@@ -36,7 +39,13 @@
 os.environ['DJANGO_SETTINGS_MODULE'] = 'hgbook.settings'
 import django.core.handlers.wsgi
 application = django.core.handlers.wsgi.WSGIHandler()
+print >> sys.stderr , django.core.handlers.wsgi.WSGIRequest.GET
+_application = django.core.handlers.wsgi.WSGIHandler()
+#print >> sys.stderr , django.core.handlers.wsgi.WSGIRequest.GET    
+def application(environ, start_response):
+    print >> sys.stderr ,environ['PATH_INFO']
+    
+    return _application(environ, start_response)
 
 
 
-
--- a/SEESenv/web/hgbook/run.wsgi~	Sun Feb 21 18:14:33 2010 +0530
+++ b/SEESenv/web/hgbook/run.wsgi~	Sun Feb 21 23:03:28 2010 +0530
@@ -25,6 +25,10 @@
 import os
 import sys
 import django
+
+
+print >>sys.stderr , "My Review App running"
+
 home_dir=os.getenv("HOME")
 if home_dir=='/home/amit':
     sys.path.append('/home/amit/SEES-hacks/SEESenv/web/')
@@ -35,7 +39,7 @@
 os.environ['DJANGO_SETTINGS_MODULE'] = 'hgbook.settings'
 import django.core.handlers.wsgi
 application = django.core.handlers.wsgi.WSGIHandler()
+print >> sys.stderr , django.core.handlers.wsgi.WSGIRequest.GET
 
 
 
-