Testing
authoramit@thunder
Mon, 22 Feb 2010 17:09:17 +0530
changeset 16 2e3d2cadbcb6
parent 15 f2383fee6584
child 17 abf126e51dbc
Testing
SEESenv/web/hgbook/run.wsgi
SEESenv/web/hgbook/run.wsgi~
SEESenv/web/hgbook/urls.py
SEESenv/web/html/ch1Introduction.html
SEESenv/web/html/ch2intro.html
SEESenv/web/html/ch3list_tuples.html
SEESenv/web/html/ch4strings_dicts.html
SEESenv/web/html/ch5func.html
SEESenv/web/html/ch6oop.html
SEESenv/web/html/ch7interim_assessment.html
SEESenv/web/html/ch9Using_Linux_Tools.html
SEESenv/web/html/chn11Section_5.html
--- a/SEESenv/web/hgbook/run.wsgi	Mon Feb 22 16:22:32 2010 +0530
+++ b/SEESenv/web/hgbook/run.wsgi	Mon Feb 22 17:09:17 2010 +0530
@@ -30,7 +30,8 @@
 print >>sys.stderr , "My Review App running"
 
 home_dir=os.getenv("HOME")
-if home_dir=='/home/amit':
+
+if home_dir=='/home/amit' or home_dir==None:
     sys.path.append('/home/amit/SEES-hacks/SEESenv/web/')
     sys.path.append('/home/amit/SEES-hacks/SEESenv/web/hgbook/comments')
 else:
--- a/SEESenv/web/hgbook/run.wsgi~	Mon Feb 22 16:22:32 2010 +0530
+++ b/SEESenv/web/hgbook/run.wsgi~	Mon Feb 22 17:09:17 2010 +0530
@@ -30,7 +30,9 @@
 print >>sys.stderr , "My Review App running"
 
 home_dir=os.getenv("HOME")
-if home_dir=='/home/amit':
+print >>sys.stderr,"my home",
+print >>sys.stderr,home_dir 
+if home_dir=='/home/amit' or home_dir==None:
     sys.path.append('/home/amit/SEES-hacks/SEESenv/web/')
     sys.path.append('/home/amit/SEES-hacks/SEESenv/web/hgbook/comments')
 else:
@@ -39,6 +41,8 @@
 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/urls.py	Mon Feb 22 16:22:32 2010 +0530
+++ b/SEESenv/web/hgbook/urls.py	Mon Feb 22 17:09:17 2010 +0530
@@ -8,7 +8,7 @@
 feeds = {
     'comments': feeds.Comments,
     }
-
+print >> sys.stderr,"in urls.py"+os.path.dirname(sys.modules[__name__].__file__)
 urlpatterns = patterns('',
     (r'^comments/', include('hgbook.comments.urls')),
 
@@ -17,7 +17,7 @@
     (r'^$', 'hgbook.comments.views.index'), 
 
     (r'^search/', 'hgbook.comments.views.search'), 
-
+	
     # Only uncomment this for local testing without Apache.
      (r'^html/(?P<path>.*)$', 'django.views.static.serve',
      {'document_root': os.path.realpath(os.path.dirname(
--- a/SEESenv/web/html/ch1Introduction.html	Mon Feb 22 16:22:32 2010 +0530
+++ b/SEESenv/web/html/ch1Introduction.html	Mon Feb 22 17:09:17 2010 +0530
@@ -15,7 +15,7 @@
   </script>
  </head>
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
-  <div class="chapter" id="Introduction">
+  <div class="chapter" id="ch1Introduction">
    <div class="titlepage">
    </div>
    <div class="toc">
--- a/SEESenv/web/html/ch2intro.html	Mon Feb 22 16:22:32 2010 +0530
+++ b/SEESenv/web/html/ch2intro.html	Mon Feb 22 17:09:17 2010 +0530
@@ -15,7 +15,7 @@
   </script>
  </head>
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
-  <div class="chapter" id="intro">
+  <div class="chapter" id="ch2intro">
    <div class="titlepage">
    </div>
    <div class="toc">
--- a/SEESenv/web/html/ch3list_tuples.html	Mon Feb 22 16:22:32 2010 +0530
+++ b/SEESenv/web/html/ch3list_tuples.html	Mon Feb 22 17:09:17 2010 +0530
@@ -15,7 +15,7 @@
   </script>
  </head>
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
-  <div class="chapter" id="list_tuples">
+  <div class="chapter" id="ch3list_tuples">
    <div class="titlepage">
    </div>
    <div class="toc">
--- a/SEESenv/web/html/ch4strings_dicts.html	Mon Feb 22 16:22:32 2010 +0530
+++ b/SEESenv/web/html/ch4strings_dicts.html	Mon Feb 22 17:09:17 2010 +0530
@@ -15,7 +15,7 @@
   </script>
  </head>
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
-  <div class="chapter" id="strings_dicts">
+  <div class="chapter" id="ch4strings_dicts">
    <div class="titlepage">
    </div>
    <div class="toc">
--- a/SEESenv/web/html/ch5func.html	Mon Feb 22 16:22:32 2010 +0530
+++ b/SEESenv/web/html/ch5func.html	Mon Feb 22 17:09:17 2010 +0530
@@ -15,7 +15,7 @@
   </script>
  </head>
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
-  <div class="chapter" id="func">
+  <div class="chapter" id="ch5func">
    <div class="titlepage">
    </div>
    <div class="toc">
--- a/SEESenv/web/html/ch6oop.html	Mon Feb 22 16:22:32 2010 +0530
+++ b/SEESenv/web/html/ch6oop.html	Mon Feb 22 17:09:17 2010 +0530
@@ -15,7 +15,7 @@
   </script>
  </head>
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
-  <div class="chapter" id="oop">
+  <div class="chapter" id="ch6oop">
    <div class="titlepage">
    </div>
    <div class="toc">
--- a/SEESenv/web/html/ch7interim_assessment.html	Mon Feb 22 16:22:32 2010 +0530
+++ b/SEESenv/web/html/ch7interim_assessment.html	Mon Feb 22 17:09:17 2010 +0530
@@ -15,7 +15,7 @@
   </script>
  </head>
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
-  <div class="chapter" id="interim_assessment">
+  <div class="chapter" id="ch7interim_assessment">
    <div class="titlepage">
    </div>
    <div class="toc">
--- a/SEESenv/web/html/ch9Using_Linux_Tools.html	Mon Feb 22 16:22:32 2010 +0530
+++ b/SEESenv/web/html/ch9Using_Linux_Tools.html	Mon Feb 22 17:09:17 2010 +0530
@@ -15,7 +15,7 @@
   </script>
  </head>
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
-  <div class="chapter" id="Using_Linux_Tools">
+  <div class="chapter" id="ch9Using_Linux_Tools">
    <div class="titlepage">
    </div>
    <div class="toc">
--- a/SEESenv/web/html/chn11Section_5.html	Mon Feb 22 16:22:32 2010 +0530
+++ b/SEESenv/web/html/chn11Section_5.html	Mon Feb 22 17:09:17 2010 +0530
@@ -15,7 +15,7 @@
   </script>
  </head>
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
-  <div class="chapter" id="Section_">
+  <div class="chapter" id="ch11Section_5">
    <div class="titlepage">
    </div>
    <div class="toc">