testing
authoramit@thunder
Sun, 21 Feb 2010 23:32:34 +0530
changeset 11 a7bd4bca6f6e
parent 10 aff1900403ee
child 12 9c8d61545b60
testing
SEESenv/web/hgbook/run.wsgi
SEESenv/web/hgbook/run.wsgi~
SEESenv/web/hgbook/settings.py
SEESenv/web/hgbook/urls.py
--- a/SEESenv/web/hgbook/run.wsgi	Sun Feb 21 23:03:28 2010 +0530
+++ b/SEESenv/web/hgbook/run.wsgi	Sun Feb 21 23:32:34 2010 +0530
@@ -37,7 +37,10 @@
     sys.path.append('/home/hg/repos/SEES-hacks/SEESenv/web/')
     sys.path.append('/home/hg/repos/SEES-hacks/SEESenv/web/hgbook/comments')
 os.environ['DJANGO_SETTINGS_MODULE'] = 'hgbook.settings'
+import hgbook
 import django.core.handlers.wsgi
+print >> sys.stderr , hgbook
+print >> sys.stderr , django.core.handlers.wsgi.WSGIRequest.GET
 application = django.core.handlers.wsgi.WSGIHandler()
 print >> sys.stderr , django.core.handlers.wsgi.WSGIRequest.GET
 _application = django.core.handlers.wsgi.WSGIHandler()
--- a/SEESenv/web/hgbook/run.wsgi~	Sun Feb 21 23:03:28 2010 +0530
+++ b/SEESenv/web/hgbook/run.wsgi~	Sun Feb 21 23:32:34 2010 +0530
@@ -37,9 +37,16 @@
     sys.path.append('/home/hg/repos/SEES-hacks/SEESenv/web/')
     sys.path.append('/home/hg/repos/SEES-hacks/SEESenv/web/hgbook/comments')
 os.environ['DJANGO_SETTINGS_MODULE'] = 'hgbook.settings'
+import hgbook
 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/settings.py	Sun Feb 21 23:03:28 2010 +0530
+++ b/SEESenv/web/hgbook/settings.py	Sun Feb 21 23:32:34 2010 +0530
@@ -13,8 +13,6 @@
 
 ROOT = os.path.dirname(sys.modules[__name__].__file__)
 
-DJAPIAN_DATABASE_PATH = '/home/amit/hgbook-alqua/web/hgbook'
-DJAPIAN_STEMMING_LANG = 'en'
 
 
 try:
--- a/SEESenv/web/hgbook/urls.py	Sun Feb 21 23:03:28 2010 +0530
+++ b/SEESenv/web/hgbook/urls.py	Sun Feb 21 23:32:34 2010 +0530
@@ -10,19 +10,19 @@
     }
 
 urlpatterns = patterns('',
-    (r'^/review/comments/', include('hgbook.comments.urls')),
+    (r'^/comments/', include('hgbook.comments.urls')),
 
-    (r'^/review/feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed',
+    (r'^/feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed',
      {'feed_dict': feeds}),          
-    (r'^review/$', 'hgbook.comments.views.index'), 
+    (r'^/index$', 'hgbook.comments.views.index'), 
 
-    (r'^/review/search/', 'hgbook.comments.views.search'), 
+    (r'^/search/', 'hgbook.comments.views.search'), 
 
     # Only uncomment this for local testing without Apache.
-     (r'^/review/html/(?P<path>.*)$', 'django.views.static.serve',
+     (r'^/html/(?P<path>.*)$', 'django.views.static.serve',
      {'document_root': os.path.realpath(os.path.dirname(
         sys.modules[__name__].__file__) + '/../html/')}),
-     (r'^/review/support/(?P<path>.*)$', 'django.views.static.serve',
+     (r'^/support/(?P<path>.*)$', 'django.views.static.serve',
      {'document_root': os.path.realpath(os.path.dirname(
         sys.modules[__name__].__file__) + '/../support/')}),