# HG changeset patch # User amit@thunder # Date 1266775354 -19800 # Node ID a7bd4bca6f6edbd7d8023bfa4f04f5a0cc233fa8 # Parent aff1900403eed2f074e598d4bdf4a11b0fa31c8c testing diff -r aff1900403ee -r a7bd4bca6f6e SEESenv/web/hgbook/run.wsgi --- 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() diff -r aff1900403ee -r a7bd4bca6f6e SEESenv/web/hgbook/run.wsgi~ --- 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) diff -r aff1900403ee -r a7bd4bca6f6e SEESenv/web/hgbook/settings.py --- 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: diff -r aff1900403ee -r a7bd4bca6f6e SEESenv/web/hgbook/urls.py --- 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.*)/$', 'django.contrib.syndication.views.feed', + (r'^/feeds/(?P.*)/$', '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.*)$', 'django.views.static.serve', + (r'^/html/(?P.*)$', 'django.views.static.serve', {'document_root': os.path.realpath(os.path.dirname( sys.modules[__name__].__file__) + '/../html/')}), - (r'^/review/support/(?P.*)$', 'django.views.static.serve', + (r'^/support/(?P.*)$', 'django.views.static.serve', {'document_root': os.path.realpath(os.path.dirname( sys.modules[__name__].__file__) + '/../support/')}),